:root {
  --brand-dark: #78350f;
  --brand: #f97316;
  --brand-strong: #ea580c;
  --brand-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --paper: #ffffff;
  --shadow: 0 22px 60px rgba(120, 53, 15, 0.16);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 46%, #ffffff 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 52%, #d97706 100%);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.24);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease;
}

.site-logo:hover {
  transform: scale(1.04);
}

.site-logo-icon {
  font-size: 30px;
}

.site-logo-text {
  font-size: 24px;
}

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

.nav-link,
.mobile-nav-link {
  font-weight: 700;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fef3c7;
  opacity: 1;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
  color: #ffffff;
  outline: none;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button {
  padding: 10px 16px;
  background: #ffffff;
  color: var(--brand-strong);
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 46%, #f43f5e 100%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.06));
}

.hero-container {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  color: #ffffff;
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fffbeb;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: #fef3c7;
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 900;
}

.hero-copy p {
  max-width: 680px;
  color: #fff7ed;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.8;
}

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

.center-actions {
  justify-content: center;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button {
  color: var(--brand-strong);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.24);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.hero-poster {
  position: relative;
  display: block;
  justify-self: end;
  width: min(390px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(67, 20, 7, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.38));
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 72px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #fffbeb, rgba(255, 251, 235, 0));
}

.category-strip {
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.category-scroll {
  display: flex;
  gap: 14px;
  padding: 22px 0;
  overflow-x: auto;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 12px 19px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.26);
}

.content-section {
  padding: 64px 0;
  background: #ffffff;
}

.warm-section {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

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

.section-heading h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 950;
  letter-spacing: -0.03em;
  color: #1f2937;
}

.section-more {
  color: var(--brand-strong);
  font-weight: 900;
}

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 74px rgba(120, 53, 15, 0.22);
}

.movie-poster-wrap {
  position: relative;
  display: block;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.compact-card .movie-poster-wrap {
  height: 170px;
}

.movie-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img {
  transform: scale(1.08);
}

.movie-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.72) 100%);
}

.movie-year,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.movie-year {
  right: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.66);
}

.rank-badge {
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  min-height: 210px;
}

.compact-card .movie-info {
  min-height: 178px;
}

.movie-meta,
.movie-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta strong {
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
}

.movie-meta em,
.movie-foot span {
  font-style: normal;
}

.movie-title {
  display: -webkit-box;
  min-height: 56px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 950;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-desc {
  display: -webkit-box;
  color: #4b5563;
  line-height: 1.65;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.movie-foot {
  margin-top: auto;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.filter-panel {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.1);
}

.filter-panel input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--text);
  outline: 2px solid transparent;
}

.filter-panel input:focus {
  outline-color: rgba(249, 115, 22, 0.35);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-buttons button {
  padding: 8px 13px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.filter-buttons button.is-active {
  color: #ffffff;
  background: var(--brand);
}

.empty-state {
  display: none;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

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

.page-hero {
  position: relative;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316 52%, #c2410c);
  overflow: hidden;
}

.small-page-hero {
  padding: 76px 0 70px;
}

.small-page-hero h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.1;
  font-weight: 950;
}

.small-page-hero p {
  max-width: 780px;
  color: #fffbeb;
  font-size: 20px;
  line-height: 1.75;
}

.category-overview-list {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  padding: 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-overview-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.category-overview-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #ffedd5;
  font-size: 28px;
}

.category-overview-head h2 {
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 950;
}

.category-overview-head p {
  color: var(--muted);
}

.category-overview-head a {
  color: var(--brand-strong);
  font-weight: 900;
}

.cta-section {
  padding: 70px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #f59e0b, #facc15);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 950;
}

.cta-inner p {
  max-width: 760px;
  margin: 16px auto 0;
  color: #fff7ed;
  font-size: 20px;
}

.detail-shell {
  padding: 34px 0 68px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: #9a3412;
  font-weight: 800;
}

.breadcrumb strong {
  color: #4b5563;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-overlay-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
}

.big-play-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.detail-content-card,
.side-card {
  margin-top: 24px;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-channel {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

.detail-content-card h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.detail-one-line {
  color: #4b5563;
  font-size: 19px;
  line-height: 1.8;
}

.detail-stats,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-stats {
  margin: 22px 0;
  color: #6b7280;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.detail-item {
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
}

.detail-item span {
  display: block;
  margin-bottom: 4px;
  color: #9ca3af;
  font-size: 13px;
}

.detail-item strong {
  color: #1f2937;
}

.story-section {
  margin-top: 28px;
}

.story-section h2,
.side-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 950;
}

.story-section p {
  color: #374151;
  line-height: 1.9;
}

.tag-pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
}

.detail-side {
  position: relative;
}

.side-card {
  position: sticky;
  top: 96px;
  margin-top: 0;
}

.side-recommend-list {
  display: grid;
  gap: 16px;
}

.side-recommend-list .movie-card {
  border-radius: 18px;
}

.side-recommend-list .movie-poster-wrap {
  height: 138px;
}

.side-recommend-list .movie-info {
  min-height: 150px;
  padding: 14px;
}

.side-recommend-list .movie-title {
  min-height: auto;
  font-size: 16px;
}

.site-footer {
  color: #fde68a;
  background: #78350f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding: 54px 0 36px;
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 950;
}

.site-footer h2 {
  font-size: 26px;
}

.site-footer p {
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
}

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .side-card {
    position: static;
  }
}

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

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header-inner {
    min-height: 62px;
  }

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

  .hero-section,
  .hero-container {
    min-height: 560px;
  }

  .hero-slide {
    padding: 34px 0 70px;
  }

  .hero-dots {
    bottom: 46px;
  }

  .category-scroll {
    padding-left: 0;
  }

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

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

  .movie-poster-wrap {
    height: 190px;
  }

  .movie-info {
    min-height: 198px;
    padding: 14px;
  }

  .movie-title {
    font-size: 17px;
  }

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

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

  .detail-content-card,
  .side-card {
    padding: 20px;
    border-radius: 22px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .wide-grid,
  .ranking-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

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

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