:root {
  --bg: #fff7ed;
  --bg-soft: #fffbf5;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.18);
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-soft: #fed7aa;
  --dark: #0f172a;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff7ed 100%);
  color: var(--text);
  min-height: 100vh;
}

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: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.14);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #fb923c);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.brand-text,
.footer-brand {
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111827;
  font-size: 19px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--primary-dark);
  background: rgba(255, 237, 213, 0.9);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(124, 45, 18, 0.07);
}

.header-search input,
.mobile-search input,
.home-search input,
.filter-bar input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  width: 220px;
  padding: 8px 8px 8px 14px;
}

.header-search button,
.mobile-search button,
.home-search button,
.filter-bar button,
.primary-button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 8px 16px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.primary-button:hover,
.header-search button:hover,
.mobile-search button:hover,
.home-search button:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.12);
}

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

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  background: var(--bg-soft);
  border-radius: 16px;
}

.mobile-search input {
  padding: 10px;
}

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

.hero-section {
  padding: 28px 0 18px;
}

.hero-shell {
  position: relative;
  width: min(1220px, calc(100% - 28px));
  min-height: 590px;
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.24);
}

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

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 20%, rgba(251, 146, 60, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.62));
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 40px;
  padding: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-copy .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.9);
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #ffffff;
  max-width: 760px;
}

.hero-summary,
.page-hero p,
.detail-hero p {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 24px 0 28px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-poster {
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.35);
  transition: transform 0.28s ease;
}

.hero-poster:hover {
  transform: translateY(-6px) scale(1.01);
}

.hero-poster img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 22px;
  background: #111827;
}

.hero-poster span {
  color: #ffffff;
  padding: 14px 8px 6px;
  line-height: 1.6;
  font-weight: 700;
}

.hero-control-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 0;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #fed7aa;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--primary);
}

.quick-search-panel {
  padding: 18px 0 34px;
}

.quick-search-panel .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.home-search label,
.filter-bar label {
  display: block;
  font-weight: 900;
  margin-bottom: 10px;
  color: #111827;
}

.home-search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border: 2px solid #fed7aa;
  border-radius: 999px;
  padding: 8px;
  background: #fff7ed;
}

.home-search input {
  padding: 12px 16px;
}

.home-search button {
  padding: 0 24px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-weight: 900;
}

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

.alt-section {
  background: rgba(255, 237, 213, 0.38);
}

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

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover,
.ranking-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(124, 45, 18, 0.18);
}

.category-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.category-tile:hover .category-image {
  transform: scale(1.06);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile strong {
  margin-top: 72px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
}

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

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

.movie-card {
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.09);
  border: 1px solid rgba(249, 115, 22, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card[hidden] {
  display: none !important;
}

.movie-card-link,
.poster-wrap,
.card-content {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fdba74);
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
}

.poster-badge,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
}

.poster-badge {
  left: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: var(--primary);
}

.card-content {
  padding: 14px;
}

.card-meta {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffedd5;
}

.movie-card h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.movie-card p {
  margin: 9px 0 12px;
  color: var(--muted);
  line-height: 1.58;
  font-size: 14px;
}

.tag-row span {
  background: #fff7ed;
  color: #9a3412;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

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

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

.ranking-item {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 52px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.ranking-number {
  font-size: 24px;
  line-height: 1;
  color: var(--primary);
  font-weight: 1000;
  text-align: center;
}

.ranking-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  background: #ffedd5;
}

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

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

.ranking-info strong {
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info em {
  color: var(--primary-dark);
  font-style: normal;
  font-size: 13px;
  margin: 4px 0;
  font-weight: 800;
}

.ranking-info span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.side-panel,
.info-card,
.text-card,
.player-card {
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 28px;
  position: sticky;
  top: 96px;
}

.side-panel h2,
.info-card h2,
.text-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.side-panel p,
.text-card p {
  color: var(--muted);
  line-height: 1.8;
}

.page-hero,
.detail-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.compact-hero {
  background: radial-gradient(circle at 18% 20%, rgba(251, 146, 60, 0.42), transparent 34%), linear-gradient(135deg, #111827, #7c2d12);
  padding: 68px 0;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

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

.category-card-large {
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(249, 115, 22, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 150px;
  overflow: hidden;
}

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

.category-card-body {
  display: block;
  padding: 18px;
}

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

.category-card-body strong {
  color: #111827;
  font-size: 21px;
  font-weight: 900;
}

.category-card-body em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.filter-bar label {
  grid-column: 1 / -1;
  margin: 0;
}

.filter-bar input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.filter-bar button {
  min-height: 46px;
  padding: 0 18px;
}

.filter-bar button[data-clear-filter] {
  color: #9a3412;
  background: #ffedd5;
  box-shadow: none;
}

.detail-hero {
  min-height: 540px;
}

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

.detail-poster {
  width: 300px;
  height: 410px;
  object-fit: cover;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.36);
  border: 8px solid rgba(255, 255, 255, 0.18);
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.18);
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  padding: 14px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  font-weight: 900;
  font-size: 18px;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.36);
  font-size: 30px;
  padding-left: 4px;
}

.text-card {
  padding: 28px;
}

.text-card h2:not(:first-child) {
  margin-top: 26px;
}

.info-card {
  padding: 24px;
  margin-bottom: 22px;
}

.info-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.info-card dt {
  color: #9a3412;
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  color: #374151;
  line-height: 1.6;
}

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

.related-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.related-item img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: #fed7aa;
}

.related-item strong,
.related-item em {
  display: block;
}

.related-item strong {
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
}

.related-item em {
  margin-top: 6px;
  color: var(--primary-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.wide-ranking {
  max-width: 980px;
}

.ranking-page-list {
  gap: 16px;
}

.ranking-page-list .ranking-item a {
  grid-template-columns: 64px 96px minmax(0, 1fr);
}

.ranking-page-list .ranking-item img {
  width: 96px;
  height: 124px;
}

.site-footer {
  padding: 54px 0 42px;
  background: #111827;
  color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  color: #ffffff;
}

.footer-inner p {
  margin: 0;
  max-width: 620px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

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

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

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

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

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

  .hero-grid {
    padding: 42px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

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

  .hero-shell,
  .hero-grid {
    min-height: 540px;
  }

  .hero-grid {
    padding: 30px 24px;
  }

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

  .hero-summary,
  .page-hero p,
  .detail-hero p {
    font-size: 16px;
  }

  .hero-actions,
  .quick-links,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-search-panel .container,
  .home-search-box,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .movie-grid,
  .cards-compact,
  .home-ranking,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-section {
    padding: 38px 0;
  }

  .detail-poster {
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .ranking-item a,
  .ranking-page-list .ranking-item a {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .ranking-item img,
  .ranking-page-list .ranking-item img {
    width: 70px;
    height: 92px;
  }
}

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

  .hero-shell {
    width: calc(100% - 18px);
    border-radius: 26px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 34px;
  }

  .category-grid,
  .movie-grid,
  .cards-compact,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card.compact .movie-card-link {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .movie-card.compact .poster-wrap {
    height: 100%;
    aspect-ratio: auto;
  }
}
