:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --cyan: #06b6d4;
  --cyan-dark: #0e7490;
  --teal: #14b8a6;
  --slate: #0f172a;
  --line: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #ecfeff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #115e59 0%, #164e63 48%, #0f172a 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #14b8a6);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.35);
}

.logo-text {
  font-size: 20px;
  white-space: nowrap;
  color: #a5f3fc;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #67e8f9;
}

.header-search {
  position: relative;
  width: 280px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
}

.header-search input {
  padding: 10px 72px 10px 16px;
  color: #ffffff;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(207, 250, 254, 0.62);
}

.header-search button,
.mobile-search button,
.search-page-form button,
.search-band button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  padding: 0 14px;
  border-radius: 999px;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.search-band button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(6, 182, 212, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 14px 24px 22px;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(103, 232, 249, 0.16);
}

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

.mobile-panel a {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.88);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 6px;
}

.mobile-search input {
  padding: 12px 14px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-search button {
  padding: 0 16px;
  border-radius: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #020617;
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  opacity: 0.62;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 38%, rgba(34, 211, 238, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, transparent 40%);
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 82px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: center;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #a5f3fc;
  border: 1px solid rgba(103, 232, 249, 0.3);
  background: rgba(8, 145, 178, 0.22);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 860px;
}

.hero-copy p {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.btn-secondary {
  color: #cffafe;
  border: 1px solid rgba(103, 232, 249, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card {
  align-self: stretch;
  min-height: 430px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.4s ease;
}

.hero-card:hover img {
  transform: scale(1.06);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.1));
}

.hero-card span,
.hero-card strong {
  position: relative;
  z-index: 1;
}

.hero-card span {
  color: #67e8f9;
  font-size: 14px;
}

.hero-card strong {
  margin-top: 8px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.25;
}

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

.hero-controls button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
}

.hero-controls button.is-active {
  background: #67e8f9;
}

.search-band {
  max-width: 1180px;
  margin: -58px auto 0;
  padding: 26px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 26px;
  align-items: center;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(14, 165, 233, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.search-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-band form,
.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-band input,
.search-page-form input {
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid #dbeafe;
  border-radius: 16px;
  outline: none;
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-band input:focus,
.search-page-form input:focus,
.filter-bar input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

.search-band button,
.search-page-form button {
  min-width: 92px;
  border-radius: 16px;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading span,
.sub-hero span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.section-heading h2,
.sub-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.section-heading p,
.sub-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 85% 15%, rgba(103, 232, 249, 0.45), transparent 28%),
    linear-gradient(135deg, #0f766e 0%, #155e75 50%, #0f172a 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card.large {
  min-height: 220px;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

.category-card span {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.14);
}

.category-card strong {
  font-size: 22px;
  line-height: 1.3;
}

.category-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.78);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

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

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent 56%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: auto;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.card-content {
  padding: 18px;
}

.card-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-content h3 a:hover {
  color: var(--cyan-dark);
}

.card-content p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
}

.card-meta a,
.detail-meta a {
  color: var(--cyan-dark);
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
  font-size: 12px;
}

.movie-card-small .card-content p {
  display: none;
}

.movie-card-small .poster-link {
  aspect-ratio: 16 / 11;
}

.ranking-panel {
  padding-bottom: 0;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rank-list li a {
  display: grid;
  grid-template-columns: 42px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-list li a:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.48);
}

.rank-num,
.ranking-index {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.rank-list img {
  width: 92px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  font-size: 16px;
  line-height: 1.35;
}

.rank-text em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.sub-hero {
  padding: 78px 24px 70px;
  color: #ffffff;
  background:
    radial-gradient(circle at 75% 30%, rgba(34, 211, 238, 0.28), transparent 30%),
    linear-gradient(135deg, #115e59 0%, #155e75 52%, #0f172a 100%);
}

.sub-hero > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.sub-hero span {
  color: #a5f3fc;
}

.sub-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.category-hero {
  padding-bottom: 82px;
}

.filter-bar {
  margin-bottom: 26px;
}

.filter-bar input {
  min-height: 54px;
  padding: 0 18px;
  border: 2px solid #dbeafe;
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
}

.ranking-grid {
  display: grid;
  gap: 16px;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 56px 190px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.48);
}

.ranking-card img {
  width: 190px;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
}

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

.ranking-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.search-page-form {
  max-width: 720px;
  margin-top: 28px;
}

.search-summary {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 700;
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.video-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.2));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-overlay span {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  font-size: 38px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.36);
}

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

.video-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-status.is-visible {
  opacity: 1;
}

.movie-detail-card,
.side-box {
  margin-top: 24px;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.movie-detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.movie-detail-card h2,
.side-box h2 {
  margin: 26px 0 12px;
  font-size: 22px;
}

.movie-detail-card h2:first-of-type,
.side-box h2:first-child {
  margin-top: 0;
}

.movie-detail-card p,
.side-box p {
  color: #475569;
  line-height: 1.9;
  font-size: 16px;
}

.lead-text {
  padding: 18px;
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
  color: #164e63 !important;
  font-size: 18px !important;
}

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

.detail-side {
  position: sticky;
  top: 92px;
}

.side-box + .side-box {
  margin-top: 18px;
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.side-list a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-list img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.side-list strong,
.side-list em {
  display: block;
}

.side-list strong {
  line-height: 1.35;
}

.side-list em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.channel-link {
  display: inline-flex;
  margin: 4px 0 10px;
  color: var(--cyan-dark);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-links a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  font-size: 14px;
}

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

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

  .header-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    padding: 0 16px;
  }

  .header-search {
    display: none;
  }

  .hero,
  .hero-stage,
  .hero-slide > img {
    min-height: 660px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 74px 18px 76px;
    gap: 28px;
  }

  .hero-card {
    min-height: 260px;
    max-width: 360px;
  }

  .search-band {
    margin: -40px 16px 0;
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .search-band form,
  .search-page-form {
    grid-template-columns: 1fr;
  }

  .search-band button,
  .search-page-form button {
    min-height: 48px;
  }

  .content-section {
    padding: 54px 16px 0;
  }

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

  .ranking-card a {
    grid-template-columns: 46px 120px minmax(0, 1fr);
  }

  .ranking-card img {
    width: 120px;
    height: 82px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .logo-text {
    font-size: 17px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    display: none;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-list li a {
    grid-template-columns: 38px 86px minmax(0, 1fr);
  }

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

  .ranking-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-layout {
    padding: 24px 16px 0;
  }

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