:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.86);
  --text: #111827;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.28);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #ef4444;
  --accent-warm: #f97316;
  --success: #10b981;
  --dark: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #1d4ed8 52%, #1e40af);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.24);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 25px rgba(239, 68, 68, 0.3);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffffff;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.nav-link {
  padding: 8px 0;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
}

.dropdown-menu a:hover {
  background: #eff6ff;
  color: var(--primary);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(360px, 32vw);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-tools input,
.page-filter input {
  min-width: 0;
  border: 0;
  outline: none;
}

.header-search input {
  width: 100%;
  padding: 11px 15px;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 11px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-search input {
  flex: 1;
  padding: 12px;
  color: #ffffff;
  background: transparent;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mobile-nav a {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 10%, #1d4ed8, transparent 28%), linear-gradient(180deg, #111827, #0f172a);
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.7) 44%, rgba(15, 23, 42, 0.28) 100%), linear-gradient(0deg, #0f172a 0%, transparent 36%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 105px;
  width: min(680px, calc(100% - 64px));
}

.hero-label,
.category-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(239, 68, 68, 0.26);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

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

.hero-tags span,
.detail-meta-line span,
.detail-score-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.section-more,
.search-tools button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-tools button,
.hero-search button {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 16px 35px rgba(239, 68, 68, 0.26);
}

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

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.search-tools button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-card {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 105px;
  width: min(390px, calc(100% - 64px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(22px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.hero-card-title {
  font-size: 24px;
  font-weight: 850;
}

.hero-card p {
  margin: 10px 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.hero-search {
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
}

.hero-search input {
  flex: 1;
  padding: 14px 15px;
  color: #111827;
  background: transparent;
}

.hero-search button {
  border-radius: 0;
  white-space: nowrap;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-category-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(14px);
}

.hero-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-dot {
  width: 8px !important;
  height: 8px !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.34) !important;
}

.hero-dot.is-active {
  width: 24px !important;
  background: #ffffff !important;
}

.page-main,
.detail-main {
  width: 100%;
}

.content-section,
.detail-layout,
.related-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.compact-head {
  margin-bottom: 18px;
}

.section-more {
  color: var(--primary);
  background: #eff6ff;
}

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

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

.movie-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0f172a 58%, #111827);
}

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

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

.poster-year,
.poster-play,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(10px);
}

.poster-play {
  right: 10px;
  bottom: 10px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.rank-badge {
  top: 10px;
  right: 10px;
  min-width: 34px;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

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

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
}

.large-tags span {
  font-size: 13px;
}

.rail-shell {
  position: relative;
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 230px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.movie-rail .movie-card {
  scroll-snap-align: start;
}

.rail-arrow {
  position: absolute;
  top: 38%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
}

.rail-arrow.left {
  left: -14px;
}

.rail-arrow.right {
  right: -14px;
}

.rank-entry {
  padding: 44px 0;
  background: linear-gradient(135deg, #2563eb, #0f172a);
}

.rank-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.rank-panel .section-head p {
  color: rgba(255, 255, 255, 0.74);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank-score {
  color: #fde68a;
  font-weight: 900;
}

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

.category-tile,
.category-overview-card {
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.category-tile {
  padding: 22px;
}

.category-tile h3,
.category-overview-body h2 {
  margin: 12px 0 10px;
  font-size: 24px;
}

.category-tile p,
.category-overview-body p {
  margin: 0;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 62px max(32px, calc((100vw - 1180px) / 2));
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.48), transparent 34%), linear-gradient(135deg, #1d4ed8, #0f172a);
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-filter,
.search-tools {
  display: flex;
  gap: 10px;
  width: min(580px, 100%);
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.page-filter input,
.search-tools input,
.search-tools select {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
}

.search-tools select {
  max-width: 150px;
}

.search-tools button {
  min-height: 46px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
}

.category-cover {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  background: linear-gradient(135deg, #1e3a8a, #111827);
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.category-cover span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.66);
  font-weight: 800;
}

.category-overview-body {
  padding: 22px;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  filter: blur(4px);
}

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

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.64)), linear-gradient(0deg, #0f172a, transparent 50%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.3);
}

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

.detail-intro h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-intro p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.detail-meta-line,
.detail-score-row {
  margin-top: 18px;
}

.detail-score-row span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 42px 0 16px;
}

.detail-content,
.detail-sidebar {
  min-width: 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(0, 0, 0, 0.92));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.player-box.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
}

.player-button {
  position: relative;
  z-index: 2;
  min-width: 150px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.34);
}

.text-panel,
.info-card {
  margin-top: 22px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.text-panel h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

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

.info-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  font-weight: 700;
}

.info-card a {
  color: var(--primary);
}

.compact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.compact-list a:first-of-type {
  border-top: 0;
}

.compact-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.compact-list em {
  color: var(--muted);
  font-style: normal;
}

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

.detail-switcher a {
  padding: 15px;
  border-radius: 18px;
  color: var(--primary);
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-section {
  padding-top: 36px;
}

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

.site-footer {
  margin-top: 30px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #94a3b8;
}

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

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

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

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid,
  .ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-card {
    display: none;
  }

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

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

  .brand-name {
    font-size: 18px;
  }

  .main-nav,
  .header-search {
    display: none;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    left: 20px;
    bottom: 98px;
    width: calc(100% - 40px);
  }

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

  .section-head,
  .page-hero,
  .footer-inner {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

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

  .rank-list,
  .detail-switcher {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 42px 16px;
  }

  .page-filter,
  .search-tools {
    margin-top: 22px;
    flex-direction: column;
  }

  .search-tools select {
    max-width: none;
  }

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

  .category-cover {
    min-height: 220px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }

  .detail-poster {
    width: min(230px, 75vw);
  }

  .footer-links {
    justify-content: start;
    margin-top: 22px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .ranking-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .movie-rail {
    grid-auto-columns: 78%;
  }

  .rail-arrow {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

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

  .compact-card .poster-wrap {
    aspect-ratio: 2 / 3;
  }
}
