* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #fffaf0;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #7c2d12;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #78350f;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.search-input {
  width: 230px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(255, 247, 237, 0.86);
  color: #7c2d12;
  padding: 10px 14px;
  border-radius: 999px;
  outline: none;
}

.search-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

.search-button,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.22);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.search-button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffedd5;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #9a3412;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 16%, rgba(245, 158, 11, 0.34), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.90) 0%, rgba(17, 24, 39, 0.68) 45%, rgba(17, 24, 39, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92%, 1240px);
  transform: translate(-50%, -50%);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff7ed;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
}

.hero-content h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero-content p,
.page-hero p,
.detail-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

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

.quick-categories,
.content-section,
.category-overview,
.page-main,
.detail-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 20px;
}

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

.section-head h2,
.detail-text h2 {
  margin: 0;
  color: #7c2d12;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: #92400e;
}

.text-link {
  color: #ea580c;
  font-weight: 900;
}

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

.category-tile,
.category-card-large a {
  position: relative;
  display: block;
  min-height: 170px;
  overflow: hidden;
  border-radius: 24px;
  background: #7c2d12;
  box-shadow: 0 22px 50px rgba(124, 45, 18, 0.16);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.74;
}

.category-tile span,
.category-tile small {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #fff;
}

.category-tile span {
  bottom: 54px;
  font-size: 21px;
  font-weight: 950;
}

.category-tile small {
  bottom: 18px;
  color: #ffedd5;
  line-height: 1.45;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.17);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 62px rgba(124, 45, 18, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

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

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

.play-badge,
.rank-number {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(8px);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.rank-number {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  color: #7c2d12;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.movie-title:hover {
  color: #ea580c;
}

.movie-desc {
  min-height: 48px;
  margin: 9px 0 12px;
  color: #6b7280;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.movie-meta span {
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
}

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

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

.movie-card-compact .movie-cover {
  aspect-ratio: auto;
  min-height: 176px;
}

.movie-card-compact .movie-desc {
  min-height: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 78px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.20), transparent 24%),
    linear-gradient(135deg, #7c2d12, #f59e0b 55%, #fb923c);
  box-shadow: 0 30px 80px rgba(124, 45, 18, 0.18);
}

.page-hero h1 {
  color: #fff;
}

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

.category-card-large a {
  min-height: 330px;
  background: #111827;
}

.category-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  opacity: 0.72;
}

.category-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  color: #fff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.12));
}

.category-card-body h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 950;
}

.category-card-body p {
  margin: 0 0 18px;
  color: #ffedd5;
  line-height: 1.7;
}

.category-card-body span {
  color: #fdba74;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #92400e;
  font-weight: 800;
  margin: 10px 0 24px;
}

.breadcrumb a {
  color: #ea580c;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 20%, rgba(245, 158, 11, 0.40), transparent 28%),
    linear-gradient(135deg, #111827, #7c2d12 72%);
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

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

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
}

.detail-meta-grid strong {
  color: #fdba74;
  font-size: 13px;
}

.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
}

.player-panel {
  margin-top: 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.24);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.10), rgba(17, 24, 39, 0.42));
  cursor: pointer;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 32px;
  padding-left: 5px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.35);
}

.video-shell.is-playing .player-start {
  display: none;
}

.detail-text {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(124, 45, 18, 0.10);
}

.detail-text p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 40px;
  color: #ffedd5;
  background: linear-gradient(135deg, #7c2d12, #431407);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  max-width: 560px;
  margin: 12px 0 0;
  color: #fed7aa;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 800;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.search-modal.is-open {
  display: block;
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(8px);
}

.search-modal-card {
  position: relative;
  max-width: 780px;
  max-height: 78vh;
  overflow: auto;
  margin: 8vh auto 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24);
}

.search-modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #ffedd5;
  background: #fff;
}

.search-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 24px;
  cursor: pointer;
}

.search-results {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
}

.search-result-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #fed7aa;
}

.search-result-item strong {
  color: #7c2d12;
  font-size: 17px;
}

.search-result-item p {
  margin: 6px 0 0;
  color: #92400e;
  line-height: 1.5;
}

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

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

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

@media (max-width: 820px) {
  .header-inner {
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

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

  .mobile-search-form .search-input {
    width: 100%;
  }

  .hero-carousel,
  .hero-image {
    min-height: 620px;
  }

  .hero-content {
    width: calc(100% - 34px);
  }

  .quick-categories,
  .content-section,
  .category-overview,
  .page-main,
  .detail-main {
    padding: 34px 16px;
  }

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

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

  .page-hero {
    padding: 42px 26px;
    border-radius: 28px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .detail-cover {
    max-width: 320px;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 18px;
  }

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

  .primary-button,
  .ghost-button {
    text-align: center;
  }

  .category-strip,
  .card-grid,
  .ranking-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-compact .movie-cover {
    min-height: 158px;
  }

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

  .search-modal-card {
    width: calc(100% - 24px);
    margin-top: 6vh;
  }
}
