:root {
  --sunrise: #f97316;
  --sunrise-dark: #ea580c;
  --morning: #fb923c;
  --dawn: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f1f5f9;
  --soft-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #f8fafc 100%);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--sunrise), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sunrise-dark);
  background: #fff7ed;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

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

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1f2937, #7c2d12);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .42) 52%, rgba(0, 0, 0, .08));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 56px 0 72px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  line-height: 1.75;
}

.hero-actions,
.hero-chips,
.card-meta,
.detail-tags,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.35);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
}

.hero-chip,
.detail-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
  font-size: 1.8rem;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, .58);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .56);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--sunrise);
}

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

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

.section-title h2,
.section-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.view-more {
  color: var(--sunrise-dark);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card[hidden] {
  display: none !important;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .85);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, .36);
  box-shadow: var(--soft-shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fff7ed, #fed7aa 50%, #f97316);
}

.poster-frame.wide {
  aspect-ratio: 16 / 9;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.card-link:hover .poster-frame img {
  transform: scale(1.08);
}

.card-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  font-size: .76rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(249, 115, 22, .35);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(17, 24, 39, .82);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .25s ease;
}

.card-link:hover h3 {
  color: var(--sunrise-dark);
}

.card-meta {
  gap: 8px;
  color: var(--muted);
  font-size: .82rem;
}

.card-desc {
  display: -webkit-box;
  min-height: 40px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: .88rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gradient-section {
  background: linear-gradient(90deg, #fff7ed, #fffbeb 48%, #f0f9ff);
}

.category-strip {
  display: grid;
  gap: 34px;
}

.category-row-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.category-row-title span:first-child {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sunrise), var(--morning));
}

.category-row-title h3 {
  margin: 0;
  font-size: 1.45rem;
}

.scroller {
  overflow-x: auto;
  padding-bottom: 12px;
}

.scroller-inner {
  display: flex;
  gap: 18px;
}

.scroller-inner .movie-card {
  width: 190px;
  flex: 0 0 auto;
}

.ranking-panel {
  color: #fff;
  background: radial-gradient(circle at 10% 0, rgba(249, 115, 22, .42), transparent 34%), #111827;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  transition: transform .25s ease, background .25s ease;
}

.rank-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .14);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  font-weight: 900;
}

.rank-title strong {
  display: block;
  margin-bottom: 4px;
}

.rank-title span {
  color: #cbd5e1;
  font-size: .9rem;
}

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

.category-card {
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.filter-box {
  margin: 0 0 30px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.filter-row input,
.filter-row select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #111827;
  background: #fff;
  outline: none;
  font: inherit;
}

.filter-row input {
  flex: 1 1 260px;
}

.filter-row select {
  flex: 0 1 160px;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: rgba(249, 115, 22, .55);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .10);
}

.detail-hero {
  padding: 36px 0 64px;
  background: radial-gradient(circle at 18% 0, rgba(249, 115, 22, .22), transparent 34%), linear-gradient(180deg, #fff7ed, #fff);
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 20px;
  color: #64748b;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--sunrise-dark);
}

.detail-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 30px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 26px 60px rgba(15, 23, 42, .22);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .48), rgba(0, 0, 0, .18));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  box-shadow: 0 20px 42px rgba(249, 115, 22, .38);
  font-size: 2rem;
  transform: translateX(2px);
}

.detail-info {
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--soft-shadow);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-chip,
.tag-chip {
  color: #7c2d12;
  background: #ffedd5;
}

.detail-cover {
  overflow: hidden;
  margin-top: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7ed, #fed7aa 50%, #f97316);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-card {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto;
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.content-card p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 1.95;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 16px;
  color: #e5e7eb;
  text-align: center;
  background: #111827;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 8px 0;
}

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

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

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

@media (max-width: 760px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }

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

  .nav-links a {
    padding: 12px 14px;
  }

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

  .hero-carousel {
    height: 68vh;
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

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

  .card-body {
    padding: 13px;
  }

  .ranking-grid,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .rank-link {
    grid-template-columns: 44px 1fr;
  }

  .rank-link .detail-chip {
    grid-column: 2;
    justify-self: start;
  }

  .section-shell {
    padding: 44px 0;
  }

  .content-card {
    padding: 22px;
  }
}

@media (max-width: 460px) {
  .grid-cards,
  .grid-cards.compact {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
