* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f9fafb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #e5e7eb;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #eab308;
  --green: #22c55e;
  --cyan: #06b6d4;
  --purple: #a855f7;
  --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.22);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.rainbow-line {
  height: 4px;
  background: linear-gradient(90deg, #f87171, #facc15, #4ade80, #22d3ee, #60a5fa, #c084fc);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.04);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626, #f97316 42%, #7c3aed);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.72), rgba(250, 204, 21, 0.55), rgba(59, 130, 246, 0.64));
  filter: blur(7px);
  opacity: 0.78;
}

.logo-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-mark-large {
  width: 86px;
  height: 86px;
  border-radius: 28px;
}

.logo-mark-large svg {
  width: 54px;
  height: 54px;
}

.logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #06b6d4, #2563eb, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.search-toggle,
.mobile-link {
  border: 0;
  background: transparent;
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.search-toggle:hover,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--blue);
}

.search-toggle {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f4f6;
}

.header-search {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
  display: none;
}

.header-search.is-open {
  display: block;
}

.site-search-input,
.card-filter {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-input:focus,
.card-filter:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #f3f4f6;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #374151;
}

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

.mobile-panel.is-open {
  display: grid;
  gap: 14px;
}

.mobile-link {
  display: block;
  padding: 4px 0;
}

.hero {
  height: 72vh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f87171, #facc15, #4ade80, #22d3ee, #60a5fa, #c084fc);
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.16), transparent 26%), linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.66));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero-logo-glow {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.hero-logo-glow::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(18px);
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.07em;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.34);
}

.hero-movie-title {
  margin: 15px 0 0;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 850;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.36);
}

.hero-desc,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

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

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

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

.btn-light {
  background: #ffffff;
  color: #111827;
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  background: #f3f4f6;
}

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

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

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

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

.quick-category {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.quick-category-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 26px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.quick-category h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.quick-category p {
  margin: 0;
  color: var(--muted);
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip-row a,
.category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.category-chip-row a:hover,
.category-nav a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #ef4444, #f97316, #2563eb, #a855f7);
  transform: translateY(-2px);
}

.content-section {
  padding: 72px 0;
  background: #f9fafb;
}

.white-section {
  background: #ffffff;
}

.alt-section:nth-of-type(even) {
  background: #ffffff;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 900;
  color: #1f2937;
}

.section-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316, #2563eb, #a855f7);
  box-shadow: var(--shadow-sm);
}

.section-more {
  color: var(--blue);
  font-weight: 800;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img,
.category-card:hover img,
.detail-poster:hover img {
  transform: scale(1.07);
}

.year-badge,
.play-chip,
.rank-number {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.year-badge {
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(6px);
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 6px 11px;
  background: linear-gradient(90deg, #ef4444, #a855f7);
  box-shadow: 0 8px 18px rgba(168, 85, 247, 0.26);
}

.rank-number {
  left: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: var(--shadow-sm);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 0.82rem;
}

.movie-meta a {
  color: var(--blue);
  font-weight: 800;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 7px;
  color: #9ca3af;
}

.movie-info h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 850;
  color: #111827;
}

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

.movie-info p {
  min-height: 48px;
  margin: 9px 0 0;
  color: #6b7280;
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 750;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 34px;
  align-items: start;
}

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

.movie-card-list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 132px;
}

.movie-card-list .movie-cover {
  aspect-ratio: auto;
  height: 100%;
}

.movie-card-list .movie-info p {
  min-height: auto;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-sm);
}

.page-main {
  min-height: 68vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 74px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316 28%, #2563eb 70%, #a855f7);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 28%), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.16), transparent 22%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.small-hero h1,
.category-hero h1,
.ranking-hero h1 {
  max-width: 900px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.empty-state {
  margin: 30px 0;
  padding: 26px;
  border-radius: 18px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: #e5e7eb;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-cover span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 900;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

.category-body {
  padding: 20px;
}

.category-body h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.category-body p {
  margin: 0;
  color: #6b7280;
}

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

.category-samples a {
  color: #2563eb;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-chip-row {
  margin-top: 24px;
}

.hero-chip-row a {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ranking-wide {
  max-width: 980px;
}

.ranking-list .movie-card-list {
  grid-template-columns: 210px minmax(0, 1fr);
}

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

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.54)), var(--detail-cover);
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
}

.detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.12), transparent 26%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 46px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  background: #e5e7eb;
}

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

.detail-poster span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, #ef4444, #a855f7);
  box-shadow: var(--shadow-sm);
}

.detail-copy h1 {
  max-width: 900px;
}

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-meta-list li {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

.detail-meta-list span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.detail-meta-list strong {
  display: block;
  margin-top: 3px;
  color: #ffffff;
  font-weight: 800;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.detail-main,
.detail-side,
.text-panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-main {
  padding: 24px;
}

.detail-main h2,
.detail-side h2,
.text-panel h2 {
  margin: 0 0 18px;
  font-size: 1.55rem;
  font-weight: 900;
  color: #1f2937;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow-md);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.48));
}

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

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  font-size: 2.3rem;
  background: linear-gradient(135deg, #ef4444, #f97316, #a855f7);
  box-shadow: 0 18px 50px rgba(168, 85, 247, 0.36);
  transition: transform 0.2s ease;
}

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

.text-panel {
  margin-top: 24px;
  padding: 24px;
}

.text-panel p {
  margin: 0;
  color: #374151;
  font-size: 1.03rem;
}

.detail-side {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-links a:hover {
  background: #eff6ff;
  transform: translateX(3px);
}

.side-links span {
  color: #111827;
  font-weight: 850;
}

.side-links small {
  color: #6b7280;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 0.8fr));
  gap: 30px;
}

.footer-brand .site-logo {
  margin-bottom: 14px;
}

.footer-brand h3,
.footer-group h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-brand p,
.footer-group p {
  margin: 0;
  color: #9ca3af;
}

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

.footer-group a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 0.92rem;
}

.hidden-by-filter {
  display: none !important;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

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

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .quick-category-inner,
  .split-layout,
  .detail-layout,
  .detail-main-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

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

  .detail-poster {
    max-width: 320px;
  }
}

@media (max-width: 720px) {
  .container,
  .top-nav,
  .header-search,
  .mobile-panel,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 1.18rem;
  }

  .hero {
    height: auto;
    min-height: 640px;
  }

  .hero-content {
    padding-top: 10px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(2.35rem, 14vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
    width: min(320px, 100%);
  }

  .btn {
    width: 100%;
  }

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

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

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

  .movie-card-list,
  .ranking-list .movie-card-list {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .movie-card-list .movie-cover {
    min-height: 150px;
  }

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

  .detail-main {
    padding: 14px;
  }

  .text-panel,
  .detail-side {
    padding: 18px;
  }

  .play-overlay span {
    width: 66px;
    height: 66px;
    font-size: 1.85rem;
  }
}
