* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #eef7ff 45%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img,
video {
  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: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(14, 165, 233, 0.16);
  box-shadow: 0 12px 30px rgba(14, 116, 144, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #075985;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.75rem;
  font-style: normal;
}

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

.nav-link,
.mobile-nav-link {
  color: #334155;
  font-size: 0.96rem;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #0284c7;
}

.header-search input,
.wide-search input,
.mobile-search {
  width: 220px;
  padding: 11px 14px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.header-search input:focus,
.wide-search input:focus,
.mobile-search:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #075985;
  background: #e0f2fe;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(14, 165, 233, 0.14);
}

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

.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: #e0f2fe;
}

.hero-carousel {
  position: relative;
  height: min(72vh, 620px);
  min-height: 500px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.68) 44%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.02) 50%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow.dark {
  color: #0369a1;
  background: #e0f2fe;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-tags,
.card-meta,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-tags a,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: #075985;
  background: rgba(224, 242, 254, 0.95);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.wide-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.wide-search button {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
}

.primary-button:hover,
.wide-search button:hover {
  color: #ffffff;
  background: #0284c7;
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 2rem;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.intro-panel,
.page-hero,
.story-panel,
.side-panel,
.selection-panel,
.ranking-panel,
.tag-panel {
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.intro-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 26px;
  margin-top: -54px;
  padding: 28px;
  position: relative;
  z-index: 4;
  backdrop-filter: blur(14px);
}

.intro-panel h2,
.page-hero h1,
.section-heading h2,
.ranking-panel h2,
.tag-panel h2,
.story-panel h2,
.side-panel h2 {
  margin: 0;
  color: #0f172a;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.intro-panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.intro-panel p,
.page-hero p,
.selection-panel p,
.story-panel p,
.detail-info p,
.movie-card p,
.horizontal-card p,
.rank-card p,
.site-footer p {
  color: #475569;
  line-height: 1.8;
}

.wide-search {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.wide-search input {
  flex: 1;
  min-width: 0;
  width: auto;
}

.wide-search button {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.page-section {
  margin-top: 58px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-heading span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, rgba(14, 165, 233, 0));
}

.section-more {
  color: #0284c7;
  font-weight: 800;
}

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

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

.large-card {
  grid-column: span 2;
  grid-row: span 2;
}

.movie-card,
.horizontal-card,
.rank-card {
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.horizontal-card:hover,
.rank-card:hover,
.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.34);
  box-shadow: 0 22px 44px rgba(14, 116, 144, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #f1f5f9);
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.68));
  opacity: 0.9;
}

.poster-link img,
.horizontal-thumb img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img,
.horizontal-card:hover img,
.rank-card:hover img {
  transform: scale(1.08);
}

.play-badge,
.horizontal-thumb span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(10px);
}

.movie-card:hover .play-badge,
.horizontal-card:hover .horizontal-thumb span {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.card-tags {
  margin-bottom: 10px;
}

.card-tags span {
  padding: 5px 9px;
  font-size: 0.72rem;
}

.movie-card h2,
.horizontal-card h2,
.rank-card h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.36;
}

.large-card h2 {
  font-size: 1.45rem;
}

.movie-card h2 a:hover,
.horizontal-card h2 a:hover,
.rank-card h2 a:hover,
.side-panel a:hover,
.category-samples a:hover {
  color: #0284c7;
}

.movie-card p,
.horizontal-card p,
.rank-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.92rem;
}

.card-meta {
  color: #64748b;
  font-size: 0.82rem;
}

.card-meta span:not(:last-child)::after {
  margin-left: 8px;
  content: "·";
  color: #94a3b8;
}

.soft-section {
  padding: 44px 0;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.92), rgba(219, 234, 254, 0.92));
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 280px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}

.rail-item {
  scroll-snap-align: start;
}

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

.category-card {
  min-height: 188px;
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 34%),
    #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 20px;
}

.category-card strong {
  color: #075985;
  font-size: 1.3rem;
}

.category-card p {
  margin: 12px 0 14px;
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.7;
}

.category-samples {
  display: grid;
  gap: 6px;
  margin-top: auto;
  color: #64748b;
  font-size: 0.85rem;
}

.home-category-block + .home-category-block {
  margin-top: 34px;
}

.category-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.category-block-title h2 {
  margin: 0;
  padding-left: 12px;
  border-left: 5px solid #0ea5e9;
  color: #0f172a;
  font-size: 1.35rem;
}

.category-block-title a {
  color: #0284c7;
  font-weight: 800;
}

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

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

.ranking-panel,
.selection-panel,
.tag-panel {
  padding: 26px;
}

.ranking-panel {
  position: sticky;
  top: 96px;
}

.ranking-panel ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.ranking-panel li a:hover {
  background: #e0f2fe;
}

.ranking-panel li span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  font-weight: 800;
}

.ranking-panel li strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-panel li em {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
}

.horizontal-list {
  display: grid;
  gap: 16px;
}

.horizontal-card,
.rank-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.horizontal-thumb,
.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #e0f2fe;
}

.horizontal-thumb {
  aspect-ratio: 16 / 10;
}

.tag-panel div,
.quick-links,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-panel h2 {
  margin-bottom: 18px;
}

.tag-pill,
.quick-links a,
.filter-button {
  border: 0;
  padding: 10px 15px;
  border-radius: 999px;
  color: #075985;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  font-weight: 760;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tag-pill:hover,
.quick-links a:hover,
.filter-button:hover,
.filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  transform: translateY(-2px);
}

.page-main {
  padding: 34px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #64748b;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #0284c7;
  font-weight: 700;
}

.breadcrumb a::after {
  margin-left: 9px;
  color: #94a3b8;
  content: "/";
}

.page-hero {
  padding: 38px;
}

.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.light-hero {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff, #f0f9ff);
}

.dark-rank-hero {
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.28), transparent 26%),
    linear-gradient(135deg, #020617, #0f172a 55%, #075985);
}

.dark-rank-hero h1,
.dark-rank-hero p {
  color: #ffffff;
}

.category-hero .filter-bar {
  margin-top: 24px;
}

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

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

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

.rank-cover {
  aspect-ratio: 16 / 10;
}

.rank-cover span {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.22);
}

.detail-page {
  background: #ffffff;
}

.player-section {
  padding: 32px 0 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.22), transparent 28%),
    linear-gradient(180deg, #020617, #0f172a 58%, #111827);
}

.dark-breadcrumb {
  color: rgba(255, 255, 255, 0.68);
}

.dark-breadcrumb a {
  color: #7dd3fc;
}

.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 30px;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16), rgba(0, 0, 0, 0.34));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 2.2rem;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.play-overlay:hover span {
  transform: scale(1.05);
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-info {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-info .lead {
  color: rgba(255, 255, 255, 0.82);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.info-list div {
  padding: 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.info-list dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.info-list dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 800;
}

.detail-tags a {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.22);
}

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

.story-panel,
.side-panel {
  padding: 28px;
}

.story-panel h2 + p {
  margin-top: 12px;
}

.story-panel p + h2 {
  margin-top: 28px;
}

.side-panel ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.side-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
  font-weight: 700;
}

.no-results {
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 800;
  text-align: center;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(14, 165, 233, 0.14);
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 1rem;
}

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

.site-footer li a {
  color: #475569;
}

.site-footer li a:hover {
  color: #0284c7;
}

.footer-bottom {
  padding: 18px;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

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

  .split-section,
  .detail-content,
  .player-grid,
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .brand-text strong {
    font-size: 1.08rem;
  }

  .brand-text em {
    display: none;
  }

  .hero-carousel {
    min-height: 560px;
    height: 76vh;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 82px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-actions,
  .wide-search {
    width: 100%;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .wide-search button {
    width: 100%;
  }

  .intro-panel,
  .page-hero,
  .story-panel,
  .side-panel,
  .ranking-panel,
  .selection-panel,
  .tag-panel,
  .detail-info {
    padding: 20px;
    border-radius: 22px;
  }

  .movie-grid,
  .small-grid,
  .category-movie-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .large-card {
    grid-column: span 2;
  }

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

  .horizontal-card,
  .rank-card {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
  }

  .horizontal-thumb,
  .rank-cover {
    aspect-ratio: 3 / 4;
  }

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

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

@media (max-width: 460px) {
  .movie-grid,
  .small-grid,
  .category-movie-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .large-card {
    grid-column: span 1;
  }
}
