* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34%), linear-gradient(135deg, #111827 0%, #1f2937 42%, #000000 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.page-shell,
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

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

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

.brand-text {
  font-size: 20px;
}

.desktop-nav,
.mobile-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #d1d5db;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.footer-links a:hover {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.global-search {
  position: relative;
}

.global-search input,
.inline-filter input {
  width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  color: #ffffff;
  background: rgba(31, 41, 55, 0.82);
  padding: 11px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.global-search input:focus,
.inline-filter input:focus {
  border-color: rgba(249, 115, 22, 0.85);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  width: min(430px, calc(100vw - 32px));
  max-height: 460px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

.search-item {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-item strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
}

.search-item span {
  color: #9ca3af;
  font-size: 13px;
}

.search-empty {
  padding: 18px;
  color: #9ca3af;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 16px 18px;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.04);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(17, 24, 39, 0.64), rgba(0, 0, 0, 0.38)), linear-gradient(0deg, #111827 0%, transparent 38%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 78vh;
  grid-template-columns: 1.08fr 0.72fr;
  align-items: center;
  gap: 48px;
  padding: 90px 0 80px;
}

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

.hero-eyebrow,
.detail-kicker,
.category-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(135deg, #ffffff, #fb923c 62%, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-summary {
  max-width: 680px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d1d5db;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.3);
}

.btn-muted {
  background: rgba(255, 255, 255, 0.1);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  background: rgba(17, 24, 39, 0.62);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-card-body {
  padding: 22px;
}

.hero-card-body h2 {
  margin: 10px 0 8px;
  font-size: 26px;
}

.hero-card-body p {
  color: #d1d5db;
  line-height: 1.6;
}

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

.hero-dots button {
  width: 32px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.is-active {
  background: #f97316;
}

.page-shell {
  padding: 46px 0 74px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(31, 41, 55, 0.85));
  padding: clamp(28px, 5vw, 58px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.page-hero h1,
.detail-heading h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-heading p {
  max-width: 800px;
  color: #d1d5db;
  line-height: 1.8;
  font-size: 18px;
}

.content-section {
  margin-top: 52px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
}

.section-heading p {
  margin-top: 8px;
  color: #9ca3af;
}

.section-action {
  flex: 0 0 auto;
  color: #fb923c;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.72);
  transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-card:hover img {
  transform: scale(1.06);
  opacity: 0.82;
}

.play-hover,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
}

.play-hover {
  inset: 50% auto auto 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.card-body {
  padding: 14px;
}

.card-meta {
  margin-bottom: 10px;
}

.card-meta span {
  padding: 4px 8px;
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #fb923c;
}

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #fed7aa;
  padding: 4px 8px;
  font-size: 12px;
}

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

.category-card {
  min-height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(31, 41, 55, 0.88));
  padding: 24px;
  transition: transform 0.22s ease, border 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.55);
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.category-card p {
  color: #d1d5db;
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.7);
  padding: 12px;
}

.rank-item img {
  width: 92px;
  height: 128px;
  border-radius: 16px;
  object-fit: cover;
  background: #111827;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-item p {
  display: -webkit-box;
  overflow: hidden;
  color: #9ca3af;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.inline-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 0;
}

.inline-filter input {
  width: min(100%, 420px);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.detail-heading {
  padding: 18px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #9ca3af;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fb923c;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  transition: opacity 0.2s ease;
}

.player-cover button {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
  font-size: 26px;
}

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

.detail-panel,
.text-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background: rgba(31, 41, 55, 0.72);
  padding: 24px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
}

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

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

.info-pill {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.info-pill span {
  display: block;
  color: #9ca3af;
  font-size: 12px;
}

.info-pill b {
  display: block;
  margin-top: 4px;
}

.text-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.text-panel p {
  color: #d1d5db;
  font-size: 17px;
  line-height: 1.9;
}

.hidden-card {
  display: none;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.26);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0;
  color: #9ca3af;
}

.footer-brand {
  color: #ffffff;
}

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

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

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

  .global-search input {
    width: min(48vw, 220px);
  }

  .menu-toggle {
    display: block;
  }

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

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

  .hero-card {
    display: none;
  }

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

  .rank-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .footer-inner,
  .page-shell,
  .hero-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 17px;
  }

  .global-search {
    display: none;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .movie-card p {
    min-height: auto;
  }

  .rank-item {
    grid-template-columns: 76px 1fr;
  }

  .rank-item img {
    width: 76px;
    height: 106px;
  }

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