:root {
  color-scheme: dark;
  --bg-main: #070817;
  --bg-soft: rgba(255, 255, 255, 0.06);
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(255, 255, 255, 0.13);
  --border-soft: rgba(255, 255, 255, 0.12);
  --text-main: #ffffff;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --purple: #9333ea;
  --pink: #db2777;
  --yellow: #facc15;
  --cyan: #22d3ee;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(147, 51, 234, 0.28), transparent 32rem),
    radial-gradient(circle at 80% 0%, rgba(219, 39, 119, 0.18), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #1e1b4b 42%, #111827 100%);
}

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: linear-gradient(90deg, rgba(49, 46, 129, 0.96), rgba(88, 28, 135, 0.96), rgba(157, 23, 77, 0.94));
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 24px;
  background: linear-gradient(90deg, #fde68a, #f0abfc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f472b6);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.32);
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(360px, 35vw);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.hero-search input,
.search-controls input,
.search-controls select,
.mobile-nav input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.header-search input {
  padding: 10px 14px;
}

.header-search input::placeholder,
.hero-search input::placeholder,
.search-controls input::placeholder,
.mobile-nav input::placeholder {
  color: rgba(226, 232, 240, 0.72);
}

.header-search button,
.hero-search button,
.search-controls button,
.mobile-nav button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  padding: 10px 16px;
  transition: filter 0.22s ease, transform 0.22s ease;
}

.header-search button:hover,
.hero-search button:hover,
.mobile-nav button:hover {
  filter: brightness(1.12);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav form {
  display: flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.mobile-nav input {
  padding: 12px;
}

main {
  min-height: 65vh;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
  z-index: -2;
}

.hero-overlay,
.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(7, 8, 23, 1) 0%, rgba(7, 8, 23, 0.75) 28%, rgba(7, 8, 23, 0.25) 100%),
    linear-gradient(90deg, rgba(7, 8, 23, 0.88) 0%, rgba(88, 28, 135, 0.42) 54%, rgba(7, 8, 23, 0.45) 100%);
  z-index: -1;
}

.hero-inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: end;
  padding: 80px 0 70px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(147, 51, 234, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 36px rgba(147, 51, 234, 0.28);
  backdrop-filter: blur(14px);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(40px, 7vw, 72px);
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.52);
}

.hero-copy p,
.page-hero p {
  margin: 18px 0 0;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--text-soft);
}

.hero-meta {
  margin: 24px 0 28px;
  font-size: 15px;
}

.hero-meta span,
.detail-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
}

.hero-meta span::before,
.detail-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--yellow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  box-shadow: 0 18px 40px rgba(219, 39, 119, 0.3);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.primary-button:hover,
.ghost-button:hover,
.poster-link:hover,
.wide-link:hover,
.rank-card a:hover,
.ranking-row a:hover {
  transform: translateY(-2px);
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-search input {
  padding: 15px 18px;
}

.hero-search button {
  padding: 0 24px;
  font-weight: 800;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-categories a {
  padding: 8px 13px;
  color: #f8fafc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-categories a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-panel {
  padding: 20px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.hero-pick {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.hero-pick:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(3px);
}

.hero-pick img {
  width: 84px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-pick span {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.35;
}

.content-section,
.category-strip,
.search-panel,
.player-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2,
.footer-column h2,
.detail-article h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-heading > a {
  flex: 0 0 auto;
  color: #d8b4fe;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.movie-card a,
.category-tile,
.category-overview-card a,
.ranking-row a {
  display: block;
  height: 100%;
  color: inherit;
}

.poster-link {
  transition: transform 0.22s ease;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.poster-frame img,
.wide-cover img,
.rank-cover img,
.ranking-row img,
.detail-cover img,
.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease;
}

.poster-link:hover img,
.wide-link:hover img,
.rank-card a:hover img,
.ranking-row a:hover img,
.category-overview-card a:hover img {
  transform: scale(1.08);
}

.cover-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.82);
  backdrop-filter: blur(8px);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 36px;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
  transition: opacity 0.22s ease;
}

.poster-link:hover .play-mark {
  opacity: 1;
}

.movie-card h3,
.wide-info h3,
.rank-info h3 {
  margin: 12px 0 6px;
  color: #ffffff;
  line-height: 1.35;
}

.poster-link h3 {
  font-size: 16px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p,
.wide-info p,
.rank-info p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.poster-link p {
  min-height: 50px;
  font-size: 13px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-line {
  margin-top: 9px;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 13px;
}

.wide-link,
.rank-card a {
  display: grid;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.wide-link:hover,
.rank-card a:hover {
  background: var(--bg-card-hover);
  border-color: rgba(216, 180, 254, 0.32);
}

.wide-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.wide-info,
.rank-info {
  padding: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.card-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #e9d5ff;
  background: rgba(147, 51, 234, 0.18);
  border: 1px solid rgba(216, 180, 254, 0.14);
  font-size: 12px;
}

.rank-card a {
  grid-template-columns: 92px 1fr;
  align-items: stretch;
}

.rank-cover {
  overflow: hidden;
  min-height: 124px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 150px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, background 0.22s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: -60px auto auto -60px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(219, 39, 119, 0.22);
}

.category-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.category-tile span {
  position: relative;
  display: block;
  font-weight: 900;
  font-size: 21px;
}

.category-tile p {
  position: relative;
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 34px;
}

.small-hero > div,
.category-hero > div,
.search-hero > div,
.ranking-hero > div {
  padding: 42px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(219, 39, 119, 0.24), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

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

.category-overview-card a {
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: transform 0.22s ease, background 0.22s ease;
}

.category-overview-card a:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 156px;
  overflow: hidden;
}

.category-overview-copy {
  padding: 24px;
}

.category-overview-copy h2 {
  margin: 0;
  font-size: 28px;
}

.category-overview-copy p {
  color: var(--text-muted);
  line-height: 1.75;
}

.category-overview-copy span {
  color: #d8b4fe;
  font-weight: 800;
}

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

.search-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(120px, 0.7fr));
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.search-controls input,
.search-controls select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.search-controls select {
  color: #ffffff;
}

.search-controls option {
  color: #111827;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 76px 120px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 128px;
  padding: 14px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: transform 0.22s ease, background 0.22s ease;
}

.ranking-row a:hover {
  background: var(--bg-card-hover);
}

.ranking-row strong {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 24px;
  background: linear-gradient(135deg, #facc15, #f472b6);
}

.ranking-row img {
  width: 120px;
  height: 90px;
  border-radius: 16px;
}

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-row p {
  margin: 0 0 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ranking-row span {
  color: #d8b4fe;
  font-size: 14px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.detail-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 14px;
}

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

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

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.detail-one-line {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0 16px;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section {
  padding-top: 38px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 20px 60px rgba(219, 39, 119, 0.35);
}

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

.detail-content {
  padding-top: 30px;
}

.detail-article {
  padding: 32px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.detail-article h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(168, 85, 247, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), #020617);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) 1fr 1fr;
  gap: 34px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
  color: var(--text-muted);
}

.footer-brand p {
  max-width: 430px;
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-column h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-column a:hover {
  color: #d8b4fe;
}

.footer-bottom {
  padding: 18px 16px 28px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

@media (max-width: 1080px) {
  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-panel h2 {
    grid-column: 1 / -1;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

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

  .poster-grid,
  .wide-grid,
  .rank-grid,
  .category-movie-grid,
  .category-overview-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .ranking-row a {
    grid-template-columns: 58px 94px 1fr;
    gap: 12px;
  }

  .ranking-row img {
    width: 94px;
    height: 72px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .content-section,
  .category-strip,
  .search-panel,
  .player-section,
  .page-hero,
  .detail-inner,
  .footer-inner {
    width: min(100% - 24px, 1200px);
  }

  .logo {
    font-size: 21px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.025em;
  }

  .hero-search,
  .hero-actions {
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-search button,
  .hero-search input {
    width: 100%;
    min-height: 48px;
  }

  .hero-panel,
  .poster-grid,
  .wide-grid,
  .rank-grid,
  .category-grid,
  .category-movie-grid,
  .category-overview-grid,
  .footer-inner,
  .search-controls,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-pick {
    grid-template-columns: 92px 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading > a {
    display: inline-flex;
    margin-top: 12px;
  }

  .detail-cover {
    max-width: 230px;
  }

  .ranking-row a {
    grid-template-columns: 48px 80px 1fr;
    padding: 10px;
  }

  .ranking-row strong {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .ranking-row img {
    width: 80px;
    height: 62px;
  }

  .ranking-row h2 {
    font-size: 17px;
  }

  .ranking-row p {
    display: none;
  }

  .player-cover span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
