:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --deep: #0f172a;
  --deep-blue: #1e3a8a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 48%, #0e7490 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #dbeafe, #cffafe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #dbeafe;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.72);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 300px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.top-search input,
.mobile-search input,
.wide-search input,
.search-page-form input,
.card-filter-input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: #ffffff;
}

.top-search input {
  padding: 10px 14px;
  color: #ffffff;
  background: transparent;
}

.top-search input::placeholder {
  color: #bfdbfe;
}

.top-search button,
.mobile-search button,
.wide-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

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

.category-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 16px 12px;
}

.category-strip a {
  color: #dbeafe;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
}

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

.hero {
  position: relative;
  min-height: 680px;
  color: #ffffff;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.72), rgba(15, 23, 42, 0.46)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-backdrop::after,
.sub-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 390px;
  align-items: center;
  gap: 54px;
  padding: 74px 0 104px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #dff8ff;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.sub-hero h1,
.detail-title-row h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.hero-copy h1 {
  max-width: 840px;
  background: linear-gradient(90deg, #ffffff, #bfdbfe, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 22px 0 12px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
}

.hero-copy p,
.sub-hero p,
.detail-title-row p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-tags,
.search-chips,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 26px 0;
}

.hero-tags span,
.tag-row span,
.detail-tags a,
.search-chips button,
.chips button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.btn.text {
  color: #dff8ff;
}

.btn.small {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(1deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-play,
.play-dot {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

.hero-dot.active {
  width: 28px;
  border-radius: 99px;
  background: #22d3ee;
}

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

.hero-rail a {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-rail img {
  width: 54px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-rail span {
  overflow: hidden;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.quick-search-section {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.quick-search-card,
.filter-card,
.content-card,
.sidebar-card,
.category-overview-card,
.detail-side-card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.quick-search-card {
  padding: 26px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 24px;
}

.quick-search-card h2,
.section-title h2,
.sidebar-card h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.quick-search-card p,
.section-title p,
.content-card p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

.wide-search,
.search-page-form {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.wide-search input,
.search-page-form input {
  padding: 16px 20px;
}

.wide-search button,
.search-page-form button {
  padding: 14px 28px;
}

.section-block {
  padding: 66px 0;
}

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

.section-title a {
  color: var(--blue);
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow);
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.category-card::after,
.overview-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.88));
  z-index: -1;
}

.category-glow {
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 70px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.36);
  filter: blur(28px);
}

.category-card strong,
.category-card em {
  position: relative;
  display: block;
  padding: 0 18px;
}

.category-card strong {
  margin-top: 120px;
  font-size: 22px;
  font-style: normal;
}

.category-card em {
  margin-top: 8px;
  color: #e0f2fe;
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.76));
}

.play-dot {
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: translate(-50%, -45%) scale(0.9);
  transition: 0.25s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  right: 12px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.rank-badge {
  left: 12px;
  color: #7c2d12;
  background: #fef3c7;
}

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

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
  color: var(--blue);
}

.card-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card p {
  color: #475569;
  line-height: 1.65;
  font-size: 14px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

.tag-row.large span {
  font-size: 14px;
  padding: 8px 12px;
}

.featured-strip {
  background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0e7490);
  color: #ffffff;
}

.featured-strip .section-title p,
.featured-strip .section-title a {
  color: #dbeafe;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.horizontal-item {
  display: grid;
  grid-template-columns: auto 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.featured-strip .horizontal-item {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.horizontal-item:hover {
  transform: translateX(4px);
}

.horizontal-item img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.horizontal-item strong,
.horizontal-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-item em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.featured-strip .horizontal-item em {
  color: #bae6fd;
}

.list-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.sub-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.24), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e3a8a 55%, #164e63);
}

.sub-hero .container {
  position: relative;
  z-index: 2;
  padding: 72px 0 78px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #bfdbfe;
}

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

.overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  overflow: hidden;
  transition: 0.28s ease;
}

.overview-cover {
  position: relative;
  display: block;
  min-height: 285px;
  overflow: hidden;
}

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

.overview-body {
  padding: 26px;
}

.overview-body > span {
  color: var(--blue);
  font-weight: 900;
}

.overview-body h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.mini-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.mini-list .horizontal-item {
  grid-template-columns: 64px minmax(0, 1fr);
}

.mini-list .list-rank {
  display: none;
}

.mini-list .horizontal-item img {
  width: 64px;
  height: 46px;
}

.filter-card {
  padding: 22px;
  margin-bottom: 28px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.filter-row:first-child {
  margin-top: 0;
}

.filter-row label {
  width: 74px;
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 900;
}

.card-filter-input {
  padding: 13px 16px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.chips button,
.search-chips button {
  border: 0;
  transition: 0.2s ease;
}

.chips button.active,
.chips button:hover,
.search-chips button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.empty-message {
  padding: 44px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

.sidebar-card {
  padding: 22px;
}

.sticky-side {
  position: sticky;
  top: 112px;
}

.side-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.side-list .horizontal-item {
  grid-template-columns: 74px minmax(0, 1fr);
  box-shadow: none;
  border: 1px solid var(--line);
}

.side-list .list-rank {
  display: none;
}

.side-list .horizontal-item img {
  width: 74px;
  height: 52px;
}

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

.search-chips {
  margin-top: 18px;
}

.detail-hero .container {
  position: relative;
  z-index: 2;
  padding: 48px 0 60px;
}

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

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

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.video-shell {
  position: relative;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(0, 0, 0, 0.56));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  font-size: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.player-overlay strong {
  font-size: 18px;
}

.player-card.playing .player-overlay,
.player-card.ready .player-overlay[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-side-card {
  overflow: hidden;
  color: var(--text);
}

.detail-side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-facts {
  padding: 18px;
}

.detail-facts p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-facts p:last-child {
  border-bottom: 0;
}

.detail-facts strong {
  color: var(--muted);
}

.detail-facts span {
  text-align: right;
  font-weight: 800;
}

.detail-tags {
  padding: 0 18px 20px;
}

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

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin-top: 28px;
  font-size: 26px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p {
  font-size: 17px;
  color: #334155;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 30px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.footer-inner p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 1080px) {
  .top-search {
    display: none;
  }

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

  .main-nav {
    margin-left: auto;
  }

  .hero-inner,
  .detail-layout,
  .detail-content-grid,
  .two-column-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .hero-rail {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .quick-search-card {
    grid-template-columns: 1fr;
  }

  .detail-title-row {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 64px;
  }

  .main-nav,
  .category-strip {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    gap: 30px;
    padding: 56px 0 210px;
  }

  .hero-copy p,
  .sub-hero p,
  .detail-title-row p {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 138px;
  }

  .hero-rail {
    bottom: 18px;
    overflow-x: auto;
    display: flex;
    padding-bottom: 4px;
  }

  .hero-rail a {
    min-width: 220px;
  }

  .movie-grid,
  .compact-grid,
  .ranking-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .rank-grid,
  .footer-inner,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .overview-cover {
    min-height: 240px;
  }

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

  .filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-row label {
    width: auto;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .hero-copy h1,
  .sub-hero h1,
  .detail-title-row h1 {
    letter-spacing: -0.05em;
  }

  .hero-actions,
  .wide-search,
  .search-page-form {
    flex-direction: column;
    border-radius: 18px;
  }

  .wide-search button,
  .search-page-form button {
    width: 100%;
  }

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

  .horizontal-item {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }

  .horizontal-item img {
    width: 72px;
    height: 52px;
  }

  .quick-search-card,
  .content-card,
  .filter-card,
  .sidebar-card {
    padding: 18px;
  }
}
