/* Static movie site styles inspired by the uploaded pastel card layout. */
:root {
  --marshmallow-pink: #ffb6c1;
  --marshmallow-blue: #87ceeb;
  --marshmallow-mint: #98d8c8;
  --marshmallow-lavender: #e6e6fa;
  --marshmallow-peach: #ffdab9;
  --text: #1f2937;
  --muted: #6b7280;
  --soft-border: rgba(148, 163, 184, 0.22);
  --card: rgba(255, 255, 255, 0.88);
  --shadow-soft: 0 2px 15px rgba(15, 23, 42, 0.08);
  --shadow-soft-lg: 0 16px 45px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(255, 182, 193, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(135, 206, 235, 0.22), transparent 34rem),
    linear-gradient(180deg, #fff8fb 0%, #f8fbff 42%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(148, 163, 184, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--marshmallow-pink), var(--marshmallow-blue));
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-size: 1.35rem;
  color: transparent;
  background: linear-gradient(90deg, #fb7185, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: #4b5563;
  font-weight: 600;
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover {
  color: #fb7185;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  padding: 4px;
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.header-search input,
.mobile-search input,
.large-search input,
.search-page-form input,
.search-field input,
.select-field select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  padding: 9px 12px;
}

.header-search button,
.mobile-search button,
.large-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 182, 193, 0.16);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin: 14px auto;
  padding: 6px;
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  background: #ffffff;
}

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

.mobile-nav {
  align-items: stretch;
  flex-direction: column;
  gap: 0;
}

.mobile-nav .nav-link {
  padding: 12px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  margin-top: -1px;
  isolation: isolate;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 251, 0.96) 0%, rgba(255, 248, 251, 0.84) 44%, rgba(248, 251, 255, 0.42) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 32%, rgba(255, 182, 193, 0.42), transparent 20rem),
    radial-gradient(circle at 75% 52%, rgba(135, 206, 235, 0.42), transparent 28rem);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fb7185;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 1.08rem;
}

.hero-tags,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #475569;
  border: 1px solid rgba(255, 182, 193, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
}

.btn-ghost {
  color: #374151;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.hero-poster,
.detail-poster-wrap {
  position: relative;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  box-shadow: var(--shadow-soft-lg);
  aspect-ratio: 3 / 4.18;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.34), rgba(135, 206, 235, 0.34));
}

.hero-poster-image,
.detail-poster-image,
.poster-image,
.rank-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.hero-poster:hover .hero-poster-image,
.movie-card:hover .poster-image,
.rank-thumb:hover .rank-image {
  transform: scale(1.06);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #ffffff;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--marshmallow-pink), var(--marshmallow-blue));
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(75, 85, 99, 0.28);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 32px;
  background: linear-gradient(90deg, #fb7185, #38bdf8);
}

.quick-search-card {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 24px;
  margin-top: -54px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft-lg);
  backdrop-filter: blur(12px);
}

.quick-search-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}

.large-search,
.search-page-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.large-search input,
.search-page-form input {
  padding: 12px 16px;
}

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

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

.section-heading > div,
.ranking-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2,
.ranking-title h2,
.text-card h2,
.info-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--marshmallow-pink), var(--marshmallow-blue));
  box-shadow: var(--shadow-soft);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(135, 206, 235, 0.28));
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(8px);
}

.type-badge {
  left: 12px;
  bottom: 12px;
}

.rank-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 0.82rem;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 1.03rem;
  line-height: 1.32;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.category-overview-card h2 a:hover {
  color: #fb7185;
}

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

.movie-tags span {
  min-height: 24px;
  font-size: 0.76rem;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
}

.ranking-card,
.text-card,
.info-card,
.player-card,
.category-overview-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.ranking-card {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.mini-rank-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 92px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.mini-rank-list .rank-row {
  grid-template-columns: 34px 58px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
}

.mini-rank-list .rank-play,
.mini-rank-list .rank-info p,
.mini-rank-list .rank-meta {
  display: none;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
}

.rank-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.24), rgba(135, 206, 235, 0.24));
}

.rank-info h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.rank-info p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.92rem;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.82rem;
}

.rank-meta span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.7);
}

.rank-play,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
}

.more-link {
  width: 100%;
  margin-top: 16px;
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 112px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(135, 206, 235, 0.2));
}

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

.category-card-body {
  padding: 18px;
}

.category-card-body h3,
.category-overview-card h2 {
  margin: 0 0 8px;
}

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

.category-card-body span,
.category-overview-meta span {
  color: #fb7185;
  font-weight: 800;
}

.page-hero {
  padding: 82px 0 72px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.26), transparent 24rem),
    radial-gradient(circle at 85% 15%, rgba(135, 206, 235, 0.26), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.68));
}

.page-hero .container {
  position: relative;
}

.breadcrumb-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #fb7185;
  font-weight: 800;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.search-field,
.select-field {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 800;
}

.search-field input,
.select-field select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  background: #ffffff;
}

.filter-count {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.category-overview-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  min-height: 168px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.24), rgba(135, 206, 235, 0.24));
}

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

.category-overview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-overview-meta a {
  color: #38bdf8;
  font-weight: 800;
}

.search-page-form {
  max-width: 720px;
  margin-top: 30px;
}

.search-summary {
  margin-bottom: 22px;
  color: #64748b;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--detail-bg) center / cover no-repeat;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.34)),
    radial-gradient(circle at 18% 30%, rgba(255, 182, 193, 0.32), transparent 22rem);
  backdrop-filter: blur(3px);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 42px 0 58px;
}

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

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

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

.detail-poster-wrap {
  border-color: rgba(255, 255, 255, 0.22);
}

.detail-copy h1,
.detail-copy p {
  color: #ffffff;
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.84);
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.74));
  cursor: pointer;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

.play-overlay.is-hidden {
  display: none;
}

.player-status {
  padding: 14px 18px;
  color: #64748b;
  font-size: 0.92rem;
  background: #ffffff;
}

.text-card,
.info-card {
  padding: 24px;
}

.text-card h2,
.info-card h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.text-card p {
  margin: 0 0 14px;
  color: #4b5563;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.info-card dt {
  color: #64748b;
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: #111827;
}

.info-card a {
  color: #fb7185;
  font-weight: 800;
}

.next-card {
  display: grid;
  gap: 10px;
}

.next-card a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 182, 193, 0.12);
}

.article-layout {
  max-width: 900px;
}

.site-footer {
  margin-top: 76px;
  padding: 46px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.08), rgba(135, 206, 235, 0.08));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: #64748b;
}

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

.site-footer a:hover {
  color: #fb7185;
}

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

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

  .header-search {
    min-width: 220px;
  }

  .menu-toggle {
    display: inline-block;
  }

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

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

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

  .ranking-card {
    position: static;
  }
}

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

  .hero-carousel,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 72px 0 84px;
  }

  .hero-poster {
    width: min(280px, 80vw);
    margin: 0 auto;
  }

  .hero-control {
    display: none;
  }

  .quick-search-card,
  .filter-toolbar,
  .detail-hero-grid,
  .footer-grid,
  .category-overview-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .large-search,
  .search-page-form {
    border-radius: 22px;
    flex-direction: column;
  }

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

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

  .rank-row {
    grid-template-columns: 42px 68px minmax(0, 1fr);
  }

  .rank-play {
    display: none;
  }

  .detail-poster-wrap {
    width: min(260px, 78vw);
  }
}

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

  .header-inner {
    min-height: 64px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 2.25rem;
  }

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

  .movie-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .movie-card .poster-frame {
    height: 100%;
    min-height: 168px;
  }

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

  .category-card,
  .category-overview-card {
    display: block;
  }

  .rank-info p,
  .rank-meta {
    display: none;
  }
}
