:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --text: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --card: #ffffff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --green: #059669;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  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(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.brand-text {
  transition: color 0.25s ease;
}

.brand:hover .brand-text {
  color: var(--orange-dark);
}

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

.nav-link,
.mobile-link {
  font-weight: 650;
  color: #374151;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: #111827;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 18px;
  border-top: 1px solid #ffedd5;
}

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

.mobile-link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--orange-dark);
  background: #fff7ed;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 76px 0;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 43%, #ef4444 100%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 260px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(60px);
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(30px);
}

.hero-glow-one {
  top: -140px;
  left: 8%;
}

.hero-glow-two {
  right: -110px;
  bottom: 70px;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 52px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow.dark {
  background: rgba(249, 115, 22, 0.12);
  color: #fed7aa;
}

.hero-search {
  display: flex;
  width: min(100%, 620px);
  margin-bottom: 22px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 0 18px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-button {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 16px 34px rgba(127, 29, 29, 0.18);
}

.secondary-button,
.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-actions,
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-pills {
  margin-top: 22px;
}

.hero-pills a {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  min-height: 560px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.hero-tag,
.poster-badge,
.score-badge,
.rank-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.hero-slide h2 {
  margin: 12px 0 10px;
  font-size: 34px;
  line-height: 1.15;
}

.hero-slide p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.hero-controls {
  position: absolute;
  z-index: 2;
  left: 30px;
  top: 28px;
  display: flex;
  gap: 9px;
}

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

.hero-dot.active {
  width: 30px;
  background: #fff;
}

.section-block {
  padding: 56px 0;
}

.white-band {
  background: #fff;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--orange-dark);
  font-weight: 800;
}

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

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

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

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.card-hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ffedd5;
}

.movie-card.compact .poster-wrap {
  aspect-ratio: 4 / 5;
}

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

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.category-feature:hover img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
}

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(17, 24, 39, 0.82);
}

.rank-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span,
.genre-tags span,
.tag-cloud a {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

.category-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.category-visual {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
}

.category-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.category-visual span {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.category-info {
  padding: 18px;
}

.category-info h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.sample-links,
.strip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-links a,
.strip-links a {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff7ed;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.ranking-band {
  padding: 70px 0;
  background: #111827;
  color: #fff;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: start;
}

.ranking-layout h2 {
  margin: 16px 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
}

.ranking-layout p {
  color: #d1d5db;
  line-height: 1.8;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.white-band .rank-row {
  background: #fff7ed;
}

.rank-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.white-band .rank-row:hover {
  background: #ffedd5;
}

.list-rank {
  display: inline-flex;
  justify-content: center;
  min-width: 34px;
  color: var(--amber);
  font-size: 20px;
  font-weight: 900;
}

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

.rank-row strong {
  display: block;
  margin-bottom: 5px;
  color: inherit;
}

.rank-row p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.white-band .rank-row p {
  color: #6b7280;
}

.rank-row span:last-child {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 72px 0;
  background: linear-gradient(135deg, #fb923c, #f97316 48%, #ef4444);
  color: #fff;
}

.compact-hero {
  text-align: center;
}

.compact-hero p {
  margin-right: auto;
  margin-left: auto;
}

.category-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.category-feature {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 300px;
  box-shadow: var(--shadow-lg);
}

.category-feature img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-feature span {
  position: absolute;
  inset: auto 18px 18px;
  border-radius: 16px;
  padding: 14px;
  background: rgba(17, 24, 39, 0.74);
  color: #fff;
  line-height: 1.65;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  border-radius: 22px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: 0;
  background: #fffaf0;
  padding: 12px 14px;
  color: #111827;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.empty-state {
  display: none;
  margin-top: 24px;
  border-radius: 20px;
  padding: 26px;
  background: #fff;
  color: #9a3412;
  text-align: center;
  font-weight: 800;
}

.empty-state.show {
  display: block;
}

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

.category-strip {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border-radius: 22px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.category-strip h2 {
  margin: 0 0 8px;
}

.category-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 70px 0;
  color: #fff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.36;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.62));
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.05);
}

.detail-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
}

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  color: #f3f4f6;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin: 24px 0 16px;
}

.genre-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-section {
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  color: #fff;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.42);
}

.play-overlay strong {
  max-width: min(90%, 720px);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
}

.play-overlay em {
  font-style: normal;
  color: #fed7aa;
  font-weight: 900;
}

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

.detail-main,
.detail-side {
  border-radius: 24px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.detail-main h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-main p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: #9a3412;
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  color: #374151;
  line-height: 1.55;
}

.tag-cloud {
  margin-top: 8px;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.75;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 16px;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 12px;
    font-size: 14px;
  }

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

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

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

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

  .hero {
    min-height: auto;
    padding: 48px 0;
  }

  .hero-layout,
  .ranking-layout,
  .category-hero-layout,
  .detail-hero-layout,
  .detail-layout,
  .footer-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 470px;
  }

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

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

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

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

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

  .brand {
    font-size: 20px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-search {
    display: grid;
    border-radius: 22px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-panel {
    min-height: 420px;
    border-radius: 22px;
  }

  .hero-slide-overlay {
    padding: 22px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .latest-grid,
  .all-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row img {
    width: 64px;
    height: 64px;
  }

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

  .play-icon {
    width: 68px;
    height: 68px;
    font-size: 27px;
  }
}
