:root {
  --sand-50: #fbfaf8;
  --sand-100: #f4efe7;
  --sand-200: #ddd8cf;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --purple-500: #a855f7;
  --amber-400: #fbbf24;
  --shadow-sand: 0 18px 50px rgba(87, 65, 45, 0.12);
  --shadow-soft: 0 10px 30px rgba(28, 25, 23, 0.10);
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: var(--sand-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img {
  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;
  background: rgba(251, 250, 248, 0.86);
  border-bottom: 1px solid rgba(221, 216, 207, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--rose-600), var(--purple-500));
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
}

.logo-text {
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  color: var(--stone-700);
  border-radius: 999px;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-600);
  background: var(--rose-50);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.card-search,
.search-panel select {
  border: 1px solid var(--sand-200);
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--stone-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.card-search:focus,
.search-panel select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button {
  border: none;
  color: #fff;
  background: var(--stone-900);
  border-radius: 999px;
  padding: 11px 16px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sand-200);
  border-radius: 14px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--stone-900);
  border-radius: 9px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

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

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  color: #fff;
  background: var(--stone-900);
}

.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 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(244, 63, 94, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.65) 44%, rgba(28, 25, 23, 0.14)),
    linear-gradient(0deg, rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.05));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 60px;
  padding: 70px 0 100px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--rose-600);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero .section-kicker,
.section-head.light .section-kicker {
  color: #fecdd3;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.10);
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 700;
}

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

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

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), var(--purple-500));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.26);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.btn.small {
  min-height: 38px;
  padding: 0 15px;
  color: #fff;
  background: var(--stone-900);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

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

.hero-links {
  display: flex;
  gap: 12px;
}

.hero-links a,
.text-link {
  color: var(--rose-600);
  font-weight: 800;
}

.hero-links a {
  color: #fff;
}

.section {
  padding: 76px 0;
}

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

.section-head h2,
.sub-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.section-head.light {
  color: #fff;
}

.text-link.light {
  color: #fecdd3;
}

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

.category-pill {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-pill:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 63, 94, 0.35);
}

.category-pill strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.category-pill span,
.category-card p,
.movie-card p,
.site-footer p,
.sub-hero p,
.lead,
.story-card p,
.review-card p {
  color: var(--stone-500);
  line-height: 1.75;
}

.featured-grid,
.movie-grid,
.category-card-grid,
.ranking-board {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--stone-200);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.72));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.poster-mask span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-400));
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 700;
}

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

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

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

.movie-card.compact .poster-link img {
  height: 100%;
  min-height: 148px;
  aspect-ratio: auto;
}

.movie-card.compact h3 {
  font-size: 16px;
}

.movie-card.compact .tag-row {
  display: none;
}

.ranking-strip {
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 63, 94, 0.32), transparent 28%),
    linear-gradient(135deg, #1c1917, #3b1d2a 55%, #1f1635);
}

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

.sub-hero {
  padding: 76px 0 62px;
  background:
    radial-gradient(circle at 80% 10%, rgba(244, 63, 94, 0.16), transparent 28%),
    linear-gradient(135deg, #fff, var(--rose-50));
}

.sub-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 18px;
}

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

.breadcrumb a:hover {
  color: var(--rose-600);
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--sand-200);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card-media {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  background: var(--stone-900);
}

.category-card-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

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

.category-card h2 {
  margin: 0 0 10px;
  letter-spacing: -0.04em;
}

.filter-panel,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--sand-200);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filter-panel .card-search,
.search-panel .card-search {
  flex: 1 1 280px;
}

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

.chip-row button {
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--stone-700);
  background: #fff;
}

.chip-row button.is-active,
.chip-row button:hover {
  color: #fff;
  border-color: var(--rose-500);
  background: var(--rose-600);
}

.search-panel select {
  min-width: 150px;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--stone-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(244, 63, 94, 0.26), transparent 32%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.74));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 620px;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

.detail-info h1 {
  max-width: 880px;
  font-size: clamp(40px, 5vw, 72px);
}

.detail-info .lead {
  max-width: 850px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags span {
  color: #fff;
  background: rgba(244, 63, 94, 0.36);
}

.watch-section {
  padding-top: 54px;
}

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

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  object-fit: contain;
  background: #000;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.92);
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.38);
  transform: translate(-50%, -50%);
  font-size: 34px;
  line-height: 1;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 24px;
}

.story-card,
.review-card {
  border: 1px solid var(--sand-200);
  border-radius: 28px;
  background: #fff;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.story-card h2,
.review-card h2 {
  margin: 0 0 16px;
  letter-spacing: -0.04em;
}

.story-card p,
.review-card p {
  margin: 0 0 14px;
}

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

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--sand-200);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 10px;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a:hover {
  color: var(--rose-600);
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 34px;
  }

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

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

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

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 96px;
  }

  .hero-poster {
    display: none;
  }

  .hero-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .category-pill-grid,
  .featured-grid,
  .movie-grid,
  .small-grid,
  .ranking-board,
  .related-grid,
  .category-card-grid,
  .rank-list,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .logo-text {
    font-size: 17px;
  }

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

  .hero h1,
  .detail-info h1 {
    letter-spacing: -0.06em;
  }

  .hero-copy p,
  .detail-info .lead {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

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

  .category-pill-grid,
  .featured-grid,
  .movie-grid,
  .small-grid,
  .ranking-board,
  .related-grid,
  .category-card-grid,
  .rank-list,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .play-ring {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
