:root {
  --page-bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #0891b2;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --dark: #020617;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
  min-width: 320px;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  background: #ecfeff;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 28vw);
  padding: 6px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-search input,
.mobile-search input,
.search-band input,
.filter-panel input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search button,
.mobile-search button,
.search-band button,
.filter-panel button {
  border: 0;
  cursor: pointer;
}

.header-search button,
.mobile-search button,
.search-band button {
  padding: 9px 15px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin: 14px auto;
  max-width: 720px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--dark);
  color: #ffffff;
}

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

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

.hero-media,
.poster-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.36), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.28), transparent 28%),
    linear-gradient(135deg, #0f172a, #164e63 48%, #1e3a8a);
}

.hero-media {
  width: 100%;
  height: 100%;
}

.hero-media::after,
.poster-wrap::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.38);
  font-size: clamp(38px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: 0.08em;
  z-index: 0;
}

.hero-media img,
.poster-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img.image-missing,
.poster-wrap img.image-missing {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.14) 55%, rgba(2, 6, 23, 0.35) 100%);
  z-index: 3;
}

.hero-content {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 110px;
  width: min(680px, calc(100vw - 48px));
}

.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-labels span,
.section-kicker,
.card-meta span,
.tag-row span,
.category-mini span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-labels span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.82);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

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

.hero-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.28);
}

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

.ghost-button.light {
  color: var(--text);
  background: #ffffff;
  border-color: #ffffff;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.20);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 26px;
}

.hero-next {
  right: 26px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 54px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.hero-mini-list {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 44px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 150px));
  gap: 10px;
}

.hero-mini-card {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-mini-card span {
  display: block;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 900;
}

.hero-mini-card strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-band {
  position: relative;
  z-index: 10;
  margin-top: -34px;
  padding: 0 24px;
}

.search-band-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band span {
  display: block;
  color: var(--cyan);
  font-weight: 900;
  font-size: 13px;
}

.search-band strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(18px, 2vw, 26px);
}

.search-band form {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

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

.section-kicker {
  padding: 6px 11px;
  color: var(--cyan);
  background: #ecfeff;
}

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

.section-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 900;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.34);
  box-shadow: var(--shadow);
}

.poster-wrap {
  aspect-ratio: 3 / 4;
  border-radius: 0;
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-glow {
  position: absolute;
  inset: auto 14px 14px 14px;
  height: 70px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.28);
  filter: blur(30px);
}

.card-year,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.card-year {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.62);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #f97316, #e11d48);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.25);
}

.play-chip {
  left: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.82);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-meta span {
  padding: 5px 8px;
  color: #0369a1;
  background: #e0f2fe;
}

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

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

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

.tag-row span {
  padding: 6px 9px;
  color: #475569;
  background: #f1f5f9;
}

.hot-section {
  max-width: none;
  margin-top: 72px;
  padding: 72px max(24px, calc((100vw - 1280px) / 2 + 24px));
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.28), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(37, 99, 235, 0.22), transparent 30%),
    #020617;
}

.hot-section .section-kicker,
.dark-panel .section-kicker {
  color: #cffafe;
  background: rgba(8, 145, 178, 0.26);
}

.hot-section .movie-card-link,
.dark-panel .movie-card-link {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.hot-section .movie-card p,
.dark-panel .movie-card p {
  color: #cbd5e1;
}

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

.dark-panel {
  max-width: none;
  margin-top: 72px;
  padding: 72px max(24px, calc((100vw - 1280px) / 2 + 24px));
  border-radius: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #020617, #0f172a 52%, #164e63);
}

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

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

.category-tile {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(6, 182, 212, 0.20), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
}

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

.category-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.category-mini span {
  padding: 5px 8px;
  color: #0369a1;
  background: #e0f2fe;
}

.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(6, 182, 212, 0.38), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(37, 99, 235, 0.32), transparent 28%),
    linear-gradient(135deg, #020617, #0f172a 50%, #164e63);
  box-shadow: var(--shadow);
}

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

.page-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.filter-panel label {
  display: grid;
  gap: 8px;
}

.filter-panel label span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips button {
  padding: 10px 13px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 800;
}

.empty-state {
  margin: 28px 0 0;
  padding: 28px;
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--line);
}

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

.breadcrumb a {
  color: var(--cyan);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background:
    radial-gradient(circle at 75% 20%, rgba(6, 182, 212, 0.30), transparent 32%),
    linear-gradient(135deg, #020617, #0f172a 58%, #164e63);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 6px 0 0;
  color: #ffffff;
  line-height: 1.5;
}

.tag-row-large span {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-section {
  margin-top: 34px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.18), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.34);
  font-size: 28px;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.text-panel {
  padding: 26px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.text-panel h2 {
  margin: 14px 0 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.text-panel p {
  margin: 16px 0 0;
  color: #334155;
  font-size: 16px;
  line-height: 2;
}

.site-footer {
  margin-top: 90px;
  padding: 48px 24px;
  color: #cbd5e1;
  background: #020617;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  margin: 12px 0 0;
  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;
  background: rgba(255, 255, 255, 0.08);
}

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

  .header-search {
    margin-left: auto;
    width: min(380px, 40vw);
  }

  .mobile-toggle {
    display: block;
  }

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

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

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

@media (max-width: 860px) {
  .header-inner {
    padding: 0 16px;
  }

  .header-search {
    display: none;
  }

  .hero-slider {
    min-height: 76vh;
  }

  .hero-content {
    bottom: 92px;
    left: 18px;
    width: calc(100vw - 36px);
  }

  .hero-content h1 {
    font-size: clamp(34px, 12vw, 58px);
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 18px;
    bottom: 38px;
  }

  .search-band-inner {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .content-section,
  .hot-section,
  .dark-panel,
  .page-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hot-section,
  .dark-panel {
    padding-top: 56px;
    padding-bottom: 56px;
  }

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

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

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

  .page-hero {
    padding: 32px;
    min-height: 260px;
  }

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .detail-poster {
    max-width: 360px;
    margin: 0 auto;
  }

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

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

@media (max-width: 540px) {
  .brand-text {
    font-size: 17px;
  }

  .mobile-links,
  .movie-grid,
  .movie-grid-featured,
  .movie-grid-compact,
  .movie-grid-list,
  .rank-grid,
  .rank-list,
  .category-grid,
  .category-grid-large {
    grid-template-columns: 1fr;
  }

  .hero-content p {
    font-size: 16px;
  }

  .search-band {
    padding: 0 12px;
  }

  .search-band form {
    border-radius: 18px;
    flex-direction: column;
  }

  .search-band button {
    width: 100%;
  }

  .page-hero {
    padding: 24px;
    border-radius: 22px;
  }

  .detail-info h1 {
    font-size: 34px;
  }
}

