:root {
  --bg: #fff7f6;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --amber: #f59e0b;
  --slate: #0f172a;
  --line: rgba(244, 63, 94, 0.16);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 14px 36px rgba(244, 63, 94, 0.13);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 32rem),
    linear-gradient(135deg, #f8fafc 0%, #fff1f2 50%, #fffbeb 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.detail-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(251, 113, 133, 0.2), transparent 28rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon,
.footer-logo span {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--amber));
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-logo strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #4b5563;
  transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-dark);
  background: rgba(255, 228, 230, 0.9);
}

.header-search,
.mobile-search,
.home-search-band form,
.search-page-form {
  display: flex;
  align-items: center;
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.home-search-band input,
.search-page-form input {
  width: 220px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 16px;
  color: var(--text);
}

.header-search button,
.mobile-search button,
.home-search-band button,
.search-page-form button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  padding: 12px 18px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #4b5563;
  background: rgba(255, 228, 230, 0.8);
}

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

.mobile-nav {
  align-items: stretch;
  flex-direction: column;
  margin-top: 12px;
}

.hero-section {
  position: relative;
  min-height: clamp(620px, 82vh, 820px);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #020617;
}

.hero-tile {
  position: relative;
  overflow: hidden;
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
  opacity: 0.72;
  transform: scale(1.02);
  transition: transform 0.7s ease, opacity 0.4s ease;
}

.hero-tile:hover img {
  opacity: 0.95;
  transform: scale(1.12);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.52) 54%, rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at center, rgba(244, 63, 94, 0.28), transparent 42rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: clamp(620px, 82vh, 820px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 34px;
  padding: 80px 0 48px;
}

.hero-copy {
  min-height: 360px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 760px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-kicker,
.section-eyebrow,
.sub-hero span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(244, 63, 94, 0.64);
  box-shadow: 0 14px 34px rgba(244, 63, 94, 0.25);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-slide h1 {
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  text-shadow: 0 24px 46px rgba(2, 6, 23, 0.42);
}

.hero-slide p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.8;
  text-shadow: 0 10px 28px rgba(2, 6, 23, 0.36);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--rose-dark);
  background: rgba(255, 228, 230, 0.94);
  font-size: 0.78rem;
}

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

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.32);
}

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

.btn.soft {
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.92);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-panel-head span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.hero-thumbs {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 18px;
  padding: 8px;
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
  background: rgba(15, 23, 42, 0.34);
  transition: 0.24s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
  color: #fff;
  background: rgba(244, 63, 94, 0.72);
}

.hero-thumb img {
  width: 72px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-thumb span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 700;
}

.home-search-band {
  width: min(900px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 4;
}

.home-search-band form {
  box-shadow: var(--shadow);
}

.home-search-band input {
  width: 100%;
  padding: 18px 24px;
}

.home-search-band button {
  min-width: 132px;
  padding: 18px 24px;
  font-weight: 700;
}

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

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading.left {
  text-align: left;
}

.section-heading .section-eyebrow {
  margin: 0 auto 12px;
  color: var(--rose-dark);
  border-color: rgba(244, 63, 94, 0.16);
  background: rgba(255, 228, 230, 0.9);
  box-shadow: none;
}

.section-heading.left .section-eyebrow {
  margin-left: 0;
}

.section-heading h2,
.sub-hero h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.section-heading p,
.sub-hero p {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-heading.left p {
  margin-left: 0;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 63, 94, 0.26);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #881337);
}

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

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.1);
  filter: brightness(0.82);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.26);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: 0.24s ease;
}

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

.duration {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.7);
  font-size: 0.76rem;
  backdrop-filter: blur(10px);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.32);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body h3 a:hover {
  color: var(--rose-dark);
}

.card-body p {
  min-height: 3.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 0.78rem;
}

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

.tag-row.large span {
  font-size: 0.86rem;
  padding: 8px 13px;
}

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

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

.category-card,
.category-large-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  padding: 22px;
  transition: 0.24s ease;
}

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

.category-card span,
.category-large-body span {
  color: var(--rose);
  font-weight: 800;
}

.category-card h3,
.category-large-body h2 {
  margin: 8px 0;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.category-card p,
.category-large-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.ranking-panel {
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-heading span {
  color: #1f2937;
  font-size: 1.24rem;
  font-weight: 800;
}

.panel-heading a {
  color: var(--rose-dark);
  font-size: 0.92rem;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 9px;
  background: rgba(255, 241, 242, 0.62);
  transition: 0.22s ease;
}

.rank-row:hover {
  background: rgba(255, 228, 230, 0.94);
  transform: translateX(3px);
}

.rank-row strong {
  color: var(--rose-dark);
  font-size: 1.02rem;
}

.rank-row img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-row span {
  min-width: 0;
}

.rank-row em,
.rank-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.rank-row em {
  color: #1f2937;
  font-weight: 700;
}

.rank-row small {
  margin-top: 3px;
  color: var(--muted);
}

.rank-row b {
  color: #9f1239;
  font-size: 0.84rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #4b5563;
  font-size: 0.85rem;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  padding: 11px 12px;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-page-form input:focus,
.header-search input:focus {
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.16);
}

.empty-state {
  margin: 24px 0 0;
  padding: 28px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
}

.empty-state.wide {
  grid-column: 1 / -1;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 82px 20px 54px;
  background:
    radial-gradient(circle at 50% 10%, rgba(244, 63, 94, 0.26), transparent 28rem),
    linear-gradient(135deg, #fff1f2, #fff7ed 52%, #f8fafc);
}

.sub-hero:after {
  content: "";
  position: absolute;
  inset: auto 8% -80px;
  height: 160px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.16);
  filter: blur(60px);
}

.sub-hero span {
  margin: 0 auto 14px;
  color: var(--rose-dark);
  border-color: rgba(244, 63, 94, 0.18);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.category-page-hero .crumbs,
.detail-copy .crumbs {
  color: rgba(255, 255, 255, 0.8);
}

.crumbs a:hover {
  color: #fff;
}

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

.category-large-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-posters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-posters img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #881337);
}

.category-large-body {
  align-self: center;
}

.category-large-body b {
  display: inline-flex;
  margin-top: 16px;
  color: var(--rose-dark);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #fff;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: blur(8px) saturate(1.2);
  transform: scale(1.06);
}

.detail-backdrop:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.5)),
    linear-gradient(180deg, transparent, rgba(255, 247, 246, 0.98));
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 680px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.45);
  background: linear-gradient(135deg, #111827, #881337);
}

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

.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.one-line {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.86;
}

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

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

.detail-meta dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.player-section {
  margin-top: -96px;
  position: relative;
  z-index: 3;
}

.site-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.3);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 18px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-start {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.34);
  transition: transform 0.22s ease;
}

.player-start:hover {
  transform: scale(1.06);
}

.player-start span {
  margin-left: 4px;
  font-size: 2rem;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  text-shadow: 0 12px 30px rgba(2, 6, 23, 0.46);
}

.detail-text {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
}

.text-card {
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  padding: 28px;
}

.text-card.accent {
  background: linear-gradient(135deg, rgba(255, 228, 230, 0.92), rgba(255, 255, 255, 0.9));
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.text-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.search-page-form {
  width: min(720px, 100%);
  margin: 24px auto 0;
  background: rgba(255, 255, 255, 0.9);
}

.search-page-form input {
  width: 100%;
  padding: 16px 20px;
}

.search-page-form button {
  min-width: 120px;
  padding: 16px 20px;
}

.search-result-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.search-result-heading h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.search-result-heading p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 82px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.26), transparent 30rem),
    linear-gradient(135deg, #0f172a, #4c0519 58%, #111827);
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand p,
.footer-col p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  transition: 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-cloud span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 1120px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-panel {
    max-width: 640px;
  }

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

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

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

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

  .brand-text em {
    display: none;
  }

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

  .hero-content {
    display: block;
    min-height: 720px;
    padding-top: 72px;
  }

  .hero-copy {
    min-height: 430px;
  }

  .hero-slide h1 {
    font-size: clamp(2.4rem, 15vw, 4.8rem);
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-panel {
    margin-top: 12px;
  }

  .movie-grid,
  .library-grid,
  .latest-grid,
  .category-grid,
  .category-large-grid,
  .rank-list.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

@media (max-width: 560px) {
  .content-section {
    width: min(100% - 24px, 1180px);
    padding-top: 50px;
  }

  .hero-section,
  .hero-content {
    min-height: 760px;
  }

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

  .hero-slide p {
    font-size: 0.98rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-thumb {
    grid-template-columns: 58px 1fr;
  }

  .hero-thumb img {
    width: 58px;
    height: 54px;
  }

  .home-search-band {
    margin-top: -22px;
  }

  .home-search-band form,
  .search-page-form,
  .mobile-search {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .home-search-band button,
  .search-page-form button,
  .mobile-search button {
    border-radius: 0;
  }

  .movie-grid,
  .library-grid,
  .latest-grid,
  .category-grid,
  .category-large-grid,
  .rank-list.wide {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row b {
    display: none;
  }

  .detail-hero,
  .detail-inner {
    min-height: auto;
  }

  .detail-inner {
    padding: 44px 0 140px;
  }

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

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

  .site-player {
    border-radius: 22px;
  }

  .player-start {
    width: 72px;
    height: 72px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
