:root {
  --bg: #fff7ed;
  --bg-soft: #fffaf4;
  --surface: #ffffff;
  --surface-strong: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #fed7aa;
  --shadow: 0 24px 60px rgba(124, 45, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 146, 60, 0.20), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffaf4 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  background: rgba(255, 247, 237, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(124, 45, 18, 0.08);
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #7c2d12;
}

.logo-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.34);
}

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

.nav-link,
.quick-nav a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #7c2d12;
  transition: all 0.25s ease;
}

.nav-link {
  padding: 9px 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active,
.quick-nav a:hover,
.footer-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.24);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: #ffffff;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 4px;
  background: #7c2d12;
}

.quick-nav {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 12px;
}

.quick-nav a {
  flex: 0 0 auto;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.74);
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.64) 45%, rgba(15, 23, 42, 0.26) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.95), transparent 52%);
}

.hero-bg img {
  filter: saturate(1.18) contrast(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  width: min(1180px, calc(100% - 40px));
  align-items: center;
  padding: 96px 0 120px;
}

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

.eyebrow,
.section-heading span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.94);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin-top: 14px;
  color: #fed7aa;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
}

.hero-copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.secondary-button,
.text-link,
.full-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.25s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.34);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover,
.full-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  min-height: 46px;
  padding: 0 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-poster {
  display: block;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.44);
  transform: rotate(2deg);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 42px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.hero-control:hover {
  background: rgba(249, 115, 22, 0.82);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.page-section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  color: #7c2d12;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.row-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-items: start;
  text-align: left;
}

.left-heading {
  justify-items: start;
  text-align: left;
}

.text-link {
  min-height: 42px;
  padding: 0 16px;
  color: #c2410c;
  background: #ffedd5;
}

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

.category-card {
  display: grid;
  gap: 14px;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 38px rgba(124, 45, 18, 0.08);
  transition: all 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.compact-card:hover,
.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-title {
  color: #7c2d12;
  font-size: 22px;
  font-weight: 900;
}

.category-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: auto;
}

.category-thumbs img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #ffedd5;
}

.search-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 18px;
  padding: 0 18px;
  color: #7c2d12;
  background: #fffaf4;
  outline: none;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 14px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
  transition: all 0.22s ease;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: #f97316;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(124, 45, 18, 0.08);
  transition: all 0.25s ease;
}

.movie-card a {
  display: grid;
  height: 100%;
}

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

.poster-wrap img {
  transition: transform 0.35s ease;
}

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

.poster-type,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.poster-type {
  right: 12px;
}

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

.movie-info {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-info strong {
  color: #7c2d12;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-meta,
.movie-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-desc {
  min-height: 40px;
}

.movie-tags span {
  padding: 4px 8px;
  font-size: 11px;
}

.hidden-by-filter {
  display: none !important;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.mini-grid,
.rank-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
}

.compact-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-size: 13px;
  font-weight: 900;
}

.compact-card img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  background: #ffedd5;
}

.compact-card strong {
  color: #7c2d12;
  font-size: 15px;
  line-height: 1.35;
}

.compact-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.ranking-panel,
.rank-block,
.story-card,
.info-table,
.player-box,
.page-hero {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(124, 45, 18, 0.08);
}

.ranking-panel {
  padding: 20px;
}

.full-button {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.page-hero {
  width: min(1200px, calc(100% - 40px));
  margin: 34px auto 0;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.94), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at right top, rgba(249, 115, 22, 0.18), transparent 24rem);
}

.page-hero div {
  display: grid;
  gap: 14px;
}

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

.rank-block {
  margin-bottom: 22px;
  padding: 22px;
}

.rank-block h2 {
  margin-bottom: 16px;
  color: #7c2d12;
  font-size: 24px;
  font-weight: 900;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

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

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  margin-top: 16px;
  color: #ffffff;
}

.detail-one-line {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags {
  margin: 22px 0 26px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #050505;
}

.play-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(0, 0, 0, 0.56));
  transition: opacity 0.25s ease;
}

.play-trigger span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-size: 34px;
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.42);
}

.player-box.is-playing .play-trigger {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  gap: 24px;
}

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

.story-card {
  padding: 24px;
  transition: all 0.25s ease;
}

.story-card h2 {
  margin-bottom: 12px;
  color: #7c2d12;
  font-size: 24px;
  font-weight: 900;
}

.story-card p {
  color: #4b5563;
  line-height: 1.9;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(251, 146, 60, 0.16);
}

.info-table div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #ffffff;
}

.info-table span {
  color: var(--muted);
  font-size: 13px;
}

.info-table strong,
.info-table a {
  color: #7c2d12;
  font-weight: 900;
}

.pager-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pager-link {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  color: #7c2d12;
  background: #ffffff;
  font-weight: 900;
  transition: all 0.25s ease;
}

.pager-link:hover {
  color: #ffffff;
  background: #f97316;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(251, 146, 60, 0.2);
  background: #fff7ed;
}

.footer-inner {
  display: flex;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
}

.footer-inner strong {
  color: #7c2d12;
  font-size: 18px;
}

.footer-inner p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  padding: 8px 12px;
  font-weight: 800;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 20px;
    display: none;
    width: 220px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content,
  .detail-layout,
  .split-section,
  .detail-grid,
  .pager-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 28px;
  }

  .hero-poster,
  .detail-poster {
    width: min(260px, 72vw);
  }

  .category-grid,
  .large-categories,
  .wide-rank-list,
  .info-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .row-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .site-topbar,
  .quick-nav,
  .page-section,
  .page-hero,
  .detail-hero-inner,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .site-topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-logo {
    font-size: 17px;
  }

  .quick-nav {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-top: 72px;
  }

  .hero-control {
    display: none;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 15px;
  }

  .page-hero {
    padding: 28px;
  }

  .category-grid,
  .large-categories,
  .movie-grid,
  .info-table {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

  .poster-wrap {
    aspect-ratio: 16 / 10;
  }

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

  .play-trigger span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
