:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --muted: #64748b;
  --red: #ef4444;
  --orange: #f97316;
  --rose: #fb7185;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: #f8fafc;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  color: #fff;
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(1240px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 1.3rem;
  background: linear-gradient(90deg, #f87171, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fb923c;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.88);
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 9px 12px 9px 16px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.nav-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 9px 18px;
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.28), transparent 42%), linear-gradient(135deg, #020617, #0f172a 45%, #164e63);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.74) 42%, rgba(15, 23, 42, 0.22)), linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 36%, rgba(2, 6, 23, 0.52));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 82px 0 130px;
}

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

.hero-kicker,
.section-heading span,
.panel-title span,
.page-hero span,
.category-card-large span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 16px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.28);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.9rem);
  line-height: 1.02;
  max-width: 920px;
  background: linear-gradient(90deg, #cffafe, #ffffff, #fed7aa);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin-top: 18px;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  color: #fff7ed;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 720px;
  color: #cbd5e1;
  font-size: 1.1rem;
}

.hero-tags,
.tag-row,
.detail-meta,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta-line span {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.32);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  isolation: isolate;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hero-dot {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 0;
  border-radius: 18px;
  padding: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot:hover,
.hero-dot.is-active {
  background: rgba(249, 115, 22, 0.32);
  transform: translateY(-2px);
}

.hero-dot img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-dot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-light {
  background: #f8fafc;
}

.section-gradient {
  width: 100%;
  padding: 72px max(16px, calc((100% - 1240px) / 2));
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.panel-title h2,
.page-hero h1,
.story-card h2,
.player-copy h2,
.footer-inner h2 {
  margin: 0;
  font-weight: 950;
  line-height: 1.15;
}

.section-heading h2,
.panel-title h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading p,
.page-hero p,
.category-card-large p,
.story-card p,
.player-copy p,
.footer-inner p {
  color: var(--muted);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.movie-poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.movie-poster figcaption {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 950;
}

.movie-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card h2,
.movie-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-line span {
  color: #64748b;
  background: #f1f5f9;
}

.tag-row span {
  color: #b45309;
  background: #ffedd5;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.3s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.18));
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span {
  font-size: 1.35rem;
  font-weight: 950;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  border-radius: 28px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

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

.ranking-panel li a {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.ranking-panel img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-number,
.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 950;
}

.rank-number {
  width: 34px;
  height: 34px;
}

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

.ranking-panel em {
  color: #f97316;
  font-style: normal;
  font-weight: 950;
}

.panel-link {
  display: flex;
  justify-content: center;
  border-radius: 16px;
  padding: 12px;
  color: #fff;
  background: var(--slate-900);
  font-weight: 900;
}

.page-hero {
  position: relative;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.34), transparent 38%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
  overflow: hidden;
}

.page-hero > div {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.compact-hero > div {
  padding: 70px 0;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 740px;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.75);
}

.crumbs a:hover {
  color: #fb923c;
}

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

.category-card-large {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card-large:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card-large a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 190px;
}

.category-card-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-large div {
  padding: 24px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.filter-bar input,
.filter-bar select,
.search-page-form input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--slate-900);
  background: #fff;
  outline: 0;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-page-form input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.empty-note {
  margin: 30px 0 0;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

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

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

.ranking-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ranking-card a {
  display: grid;
  grid-template-columns: 58px 110px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
}

.rank-medal {
  width: 42px;
  height: 42px;
}

.ranking-card img {
  width: 110px;
  height: 150px;
  border-radius: 18px;
  object-fit: cover;
}

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

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

.ranking-card strong {
  color: #f97316;
  font-size: 1.35rem;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.7)), linear-gradient(0deg, #020617, transparent 50%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 60px;
}

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

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.08;
}

.detail-info p {
  max-width: 860px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.player-section {
  padding-top: 46px;
  padding-bottom: 30px;
}

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.video-box {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  background: #000;
}

.player-cover {
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  cursor: pointer;
  overflow: hidden;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.42;
  z-index: -1;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.32);
  font-size: 1.9rem;
}

.player-cover strong {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.player-copy {
  padding: 24px 28px 30px;
}

.player-copy h2 {
  font-size: 1.7rem;
}

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

.story-card {
  border-radius: 26px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto 24px;
}

.search-summary {
  margin: 0 auto 28px;
  max-width: 780px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), #000);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.footer-inner h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

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

.footer-inner a:hover {
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 1080px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-poster {
    display: none;
  }

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

  .section-split,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.35);
  }

  .site-header.is-open .nav-menu {
    display: grid;
    gap: 14px;
  }

  .nav-links,
  .nav-search {
    width: min(100%, 520px);
    margin: 0 auto;
  }

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

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

  .nav-link:hover,
  .nav-link.is-active {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-search input {
    width: 100%;
  }

  .hero-carousel {
    min-height: 760px;
  }

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

  .hero-dots {
    grid-template-columns: 1fr;
  }

  .hero-dot {
    grid-template-columns: 42px 1fr;
    border-radius: 14px;
  }

  .hero-dot img {
    width: 42px;
    height: 42px;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .ranking-card strong {
    grid-column: 3;
  }

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

  .detail-head {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 560px) {
  .site-nav,
  .section,
  .detail-wrap,
  .page-hero > div,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .search-page-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .btn {
    width: 100%;
  }

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

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

  .category-card-large img {
    height: 210px;
  }

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

  .detail-poster {
    width: 180px;
  }

  .player-copy,
  .story-card {
    padding: 20px;
  }
}
