:root {
  --peach-50: #fff5f0;
  --peach-100: #ffe9dd;
  --peach-200: #ffd3bb;
  --peach-400: #ffa777;
  --peach-500: #ff9155;
  --peach-600: #ff7b44;
  --peach-700: #e8622d;
  --coral-50: #fff0ee;
  --coral-400: #ff7f6e;
  --ink-900: #191919;
  --ink-700: #454545;
  --ink-500: #6d6d6d;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(255, 145, 85, 0.2);
  --shadow: 0 20px 45px rgba(184, 92, 42, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-900);
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(255, 145, 85, 0.18),
      transparent 32rem
    ),
    radial-gradient(
      circle at 95% 10%,
      rgba(255, 127, 110, 0.18),
      transparent 32rem
    ),
    linear-gradient(135deg, var(--peach-50), var(--coral-50) 45%, #ffffff 100%);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

img {
  display: block;
  width: 100%;
}

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

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

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--peach-400), var(--coral-400));
  box-shadow: 0 12px 26px rgba(255, 123, 68, 0.24);
}

.brand-text,
.gradient-text {
  background: linear-gradient(135deg, var(--peach-700), var(--coral-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text {
  font-size: 1.35rem;
}

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

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--peach-700);
  background: var(--peach-100);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.nav-search input,
.search-panel input,
.search-panel select {
  border: 0;
  outline: none;
  color: var(--ink-700);
  background: transparent;
  font: inherit;
}

.nav-search input {
  width: 210px;
  padding: 8px 4px 8px 12px;
}

.nav-search button,
.primary-button,
.secondary-button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.nav-search button,
.primary-button,
.search-panel button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--peach-500), var(--coral-400));
  box-shadow: 0 14px 26px rgba(255, 123, 68, 0.2);
}

.nav-search button {
  padding: 9px 15px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.secondary-button {
  color: var(--peach-700);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.primary-button:hover,
.secondary-button:hover,
.nav-search button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(255, 123, 68, 0.24);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--peach-100);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--peach-700);
}

.hero-section {
  padding: 34px 0 26px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 590px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  display: none;
  min-height: 590px;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: stretch;
  padding: 44px;
  position: relative;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.84),
      rgba(0, 0, 0, 0.42) 48%,
      rgba(0, 0, 0, 0.12)
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.17);
}

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

.hero-poster {
  align-self: center;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  height: 500px;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 44px;
  bottom: 32px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

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

.section {
  padding: 44px 0;
}

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

.section-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--peach-700);
  font-weight: 900;
}

.section-heading h2,
.page-title h1,
.detail-info h1 {
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.05em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-heading p,
.page-title p,
.detail-info p,
.prose-card p,
.category-card p,
.footer-shell p {
  color: var(--ink-500);
  line-height: 1.8;
}

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

.movie-card,
.category-card,
.prose-card,
.player-card,
.detail-info,
.rank-list,
.search-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.movie-card {
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 145, 85, 0.42);
  box-shadow: 0 28px 56px rgba(184, 92, 42, 0.2);
}

.movie-card-link,
.movie-card-body {
  display: flex;
  flex-direction: column;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--peach-100);
}

.poster-frame img {
  aspect-ratio: 3 / 4;
  height: 330px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.compact-card:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent);
}

.poster-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.54);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.movie-card-body strong {
  color: var(--ink-900);
  font-size: 1.06rem;
  line-height: 1.35;
}

.movie-card-body em,
.compact-card em,
.rank-item em {
  color: var(--peach-700);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.movie-card-body span {
  color: var(--ink-500);
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--peach-700) !important;
  background: var(--peach-100);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.category-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card strong {
  font-size: 1.45rem;
}

.category-card span {
  color: var(--peach-700);
  font-weight: 900;
}

.page-hero {
  padding: 52px 0 24px;
}

.page-title {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.page-title h1 {
  font-size: clamp(2.1rem, 5vw, 4.1rem);
}

.page-title p {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 1.05rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  color: var(--ink-500);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--peach-700);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 999px;
  color: var(--peach-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
  font-size: 2rem;
  transform: translateX(2px);
}

.player-cover span:last-child {
  font-weight: 900;
}

.detail-info {
  padding: 26px;
}

.detail-info h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.detail-info p {
  margin-top: 18px;
}

.detail-meta span {
  color: var(--peach-700);
  background: var(--peach-100);
}

.prose-grid {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.prose-card {
  padding: 26px;
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.compact-card img {
  height: 112px;
  border-radius: 13px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.compact-card strong,
.rank-item strong {
  display: block;
  color: var(--ink-900);
  line-height: 1.45;
}

.rank-list {
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 52px 90px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--peach-500), var(--coral-400));
  font-weight: 900;
}

.rank-item img {
  height: 116px;
  border-radius: 14px;
  object-fit: cover;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.search-panel button {
  min-height: 44px;
  padding: 0 18px;
}

.empty-state {
  display: none;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink-500);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

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

.site-footer {
  margin-top: 52px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 36px 0;
}

.footer-brand {
  color: var(--peach-700);
  font-size: 1.3rem;
}

.footer-shell p {
  max-width: 620px;
  margin: 12px 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px 18px;
  align-content: center;
}

.footer-links a {
  color: var(--ink-700);
  font-weight: 800;
}

.footer-bottom {
  padding: 18px;
  color: var(--ink-500);
  border-top: 1px solid var(--line);
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-slide,
  .detail-layout,
  .prose-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

@media (max-width: 820px) {
  .nav-shell {
    min-height: 64px;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-search {
    display: none;
  }

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

  .hero-shell,
  .hero-slide {
    min-height: 540px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero-dots {
    left: 28px;
  }

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

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

  .rank-item .primary-button {
    grid-column: 3;
    width: fit-content;
  }

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

@media (max-width: 560px) {
  .movie-grid,
  .category-grid,
  .compact-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .hero-content h1,
  .hero-content h2 {
    font-size: 2.55rem;
  }

  .hero-shell,
  .hero-slide {
    min-height: 560px;
  }

  .page-title,
  .detail-info,
  .prose-card {
    padding: 22px;
  }

  .poster-frame img {
    height: auto;
  }
}
