:root {
  --blue: #2563eb;
  --indigo: #4f46e5;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.search-link,
.mobile-link {
  color: #4b5563;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.search-link:hover,
.search-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--blue);
  background: #eff6ff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-link {
  padding: 9px 14px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav.open {
  display: grid;
}

.mobile-link {
  padding: 10px 12px;
  background: #ffffff;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(37, 99, 235, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.64) 45%, rgba(15, 23, 42, 0.2)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.08));
  backdrop-filter: blur(2px);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
  padding-bottom: 88px;
}

.hero-copy {
  max-width: 740px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.22);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.hero-tags span,
.movie-badges span,
.detail-meta span,
.tag-list a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 13px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.inline-search button,
.search-page-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: all 0.22s ease;
}

.primary-btn,
.inline-search button,
.search-page-form button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.primary-btn {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-btn:hover,
.inline-search button:hover,
.search-page-form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.ghost-btn {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  width: 260px;
  aspect-ratio: 2 / 3;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.6;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
  background: #ffffff;
}

.search-band {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-panel h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
}

.inline-search,
.search-page-form,
.filter-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-search input,
.search-page-form input,
.filter-box input {
  min-width: 280px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #f8fafc;
}

.inline-search input:focus,
.search-page-form input:focus,
.filter-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.inline-search button,
.search-page-form button {
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
}

.section {
  padding: 72px 0;
}

.soft-bg {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 55%, #ecfeff 100%);
}

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

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

.section-kicker {
  color: var(--blue);
}

.section-link,
.text-btn {
  color: var(--blue);
  font-weight: 900;
}

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

.category-tile {
  min-height: 142px;
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.mini-card:hover,
.category-card-large:hover,
.ranking-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.category-tile span {
  color: var(--muted);
  font-size: 14px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  height: 245px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
}

.movie-card.compact .poster-link {
  height: 190px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0));
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.duration-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 18px;
}

.movie-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.movie-badges span {
  padding: 4px 8px;
  color: var(--blue);
  font-size: 12px;
  background: #eff6ff;
}

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

.movie-card h3 a:hover,
.rank-title:hover,
.ranking-main strong:hover {
  color: var(--blue);
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 13px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.rank-panel,
.side-card,
.detail-content,
.category-card-large {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 900;
}

.panel-title a {
  color: var(--blue);
  font-size: 14px;
}

.rank-list {
  display: grid;
  gap: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  background: #f8fafc;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: #eff6ff;
}

.rank-num,
.ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 13px;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-info {
  color: var(--muted);
  font-size: 13px;
}

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

.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mini-card img {
  width: 80px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  margin-bottom: 3px;
}

.mini-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.34), transparent 32%),
    linear-gradient(135deg, #2563eb, #4f46e5 58%, #0f172a);
}

.page-hero .container {
  padding: 70px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.subcat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.subcat-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-cover-strip img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 25px;
}

.category-card-large p {
  margin: 0 0 16px;
  color: var(--muted);
}

.filter-box input {
  min-width: 230px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 52px 90px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-index {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.ranking-item img {
  width: 90px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-main {
  min-width: 0;
}

.ranking-main strong,
.ranking-main em {
  display: block;
}

.ranking-main strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.ranking-main em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-meta {
  color: var(--muted);
  font-size: 14px;
}

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

.search-page-form input {
  flex: 1;
  min-width: 0;
  height: 58px;
  background: #ffffff;
}

.search-page-form button {
  height: 58px;
  padding: 0 30px;
}

.detail-wrap {
  padding: 34px 0 0;
}

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

.breadcrumb a:hover {
  color: var(--blue);
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.58));
  cursor: pointer;
}

.play-button-icon {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  font-size: 38px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.42);
  transition: transform 0.22s ease;
}

.play-overlay:hover .play-button-icon {
  transform: scale(1.08);
}

.player-card.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  margin-top: 24px;
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-content h2,
.side-card h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-meta span,
.tag-list a {
  padding: 6px 10px;
  color: var(--blue);
  font-size: 13px;
  background: #eff6ff;
}

.lead-text {
  margin: 0 0 18px;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-content p {
  color: #374151;
  font-size: 16px;
}

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

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.side-card {
  margin-top: 18px;
  padding: 22px;
}

.side-card h2 {
  margin-top: 0;
}

.side-card dl {
  margin: 0;
}

.side-card dt {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.side-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
}

.footer-column h2 {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.footer-column a {
  color: var(--muted);
}

.footer-column a:hover {
  color: var(--blue);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    align-items: center;
    padding: 84px 0 76px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
  }

  .detail-poster {
    height: 330px;
  }
}

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

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

  .search-link {
    display: none;
  }

  .hero {
    height: 590px;
  }

  .hero-content {
    padding-bottom: 96px;
  }

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

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .search-panel,
  .section-heading,
  .inline-search,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-search input,
  .search-page-form input,
  .filter-box input {
    min-width: 0;
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .mini-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

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

  .category-cover-strip img {
    height: 150px;
  }

  .ranking-item {
    grid-template-columns: 42px 72px 1fr;
  }

  .ranking-meta {
    grid-column: 3;
  }

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

  .detail-poster {
    height: auto;
  }

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

@media (max-width: 480px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .copyright {
    width: min(100% - 22px, 1180px);
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

  .movie-grid {
    gap: 16px;
  }

  .poster-link {
    height: 220px;
  }

  .detail-content {
    padding: 22px;
  }
}
