:root {
  --bg: #f9fafb;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #e5e7eb;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --dark: #111827;
  --panel: #ffffff;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ea580c, #f97316);
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(194, 65, 12, 0.22);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-name {
  font-size: 22px;
  white-space: nowrap;
}

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

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

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

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.nav-search input,
.mobile-search input,
.wide-search input,
.filter-line input {
  width: 100%;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
}

.nav-search input {
  padding: 10px 16px;
  color: #ffffff;
}

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

.nav-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  padding: 10px 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 3px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-search input {
  padding: 10px 14px;
}

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

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow.dark {
  color: var(--brand);
  background: #ffedd5;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 860px;
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-info p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.75;
}

.hero-tags,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.hero-tags span,
.detail-stats span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link,
.wide-search button,
.filter-line button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  padding: 13px 24px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 15px 30px rgba(234, 88, 12, 0.36);
}

.ghost-button {
  padding: 12px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.25);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-link:hover,
.wide-search button:hover,
.filter-line button:hover {
  transform: translateY(-2px);
}

.primary-button:hover,
.wide-search button:hover,
.filter-line button:hover {
  background: var(--brand-dark);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 36px;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  background: #ffffff;
}

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

.intro-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.intro-copy h2,
.section-head h2,
.panel-head h2,
.article-card h2,
.side-card h2 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-copy p,
.section-head p,
.article-card p,
.category-card-body p,
.category-tile strong {
  color: var(--muted);
  line-height: 1.75;
}

.wide-search,
.filter-line {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08);
}

.wide-search input,
.filter-line input {
  padding: 12px 16px;
  color: var(--ink);
}

.wide-search button,
.filter-line button {
  border: 0;
  padding: 12px 20px;
  color: #ffffff;
  background: var(--brand);
  white-space: nowrap;
}

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

.section-link,
.panel-head a,
.text-button {
  color: var(--brand);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(17, 24, 39, 0.16);
}

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

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

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

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: var(--brand);
}

.poster-score {
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  background: rgba(0, 0, 0, 0.62);
}

.movie-body {
  padding: 16px;
}

.movie-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.movie-body h3 {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-body h3 a:hover {
  color: var(--brand);
}

.movie-body p {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.tag-cloud span,
.filter-group button {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.rank-panel,
.article-card,
.side-card,
.filter-panel,
.category-card,
.player-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.rank-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 34px 58px 1fr;
  gap: 12px;
  align-items: center;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  color: var(--ink);
  line-height: 1.35;
}

.rank-text em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

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

.category-tile {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #111827);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: #ffedd5;
  font-size: 14px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.88), transparent 38%), linear-gradient(135deg, #111827, #1f2937);
  padding: 88px max(16px, calc((100% - 1180px) / 2)) 78px;
}

.page-hero > div {
  width: min(780px, calc(100% - 32px));
  margin-left: 16px;
}

.page-hero.small-hero,
.page-hero.category-hero,
.page-hero.rank-hero,
.page-hero.search-hero {
  min-height: 360px;
  display: flex;
  align-items: end;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.76);
}

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

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  min-height: 260px;
  background: #111827;
}

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

.category-card-body {
  padding: 24px;
}

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

.category-card-body ul {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.category-card-body li a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-weight: 700;
}

.category-card-body li span {
  color: var(--muted);
}

.filter-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-group strong {
  margin-right: 4px;
}

.filter-group button {
  border: 0;
  cursor: pointer;
}

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

.empty-state {
  display: none;
  padding: 40px;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.04);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 70px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

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

.detail-info p {
  color: #f3f4f6;
}

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

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

.player-card {
  padding: 16px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.44);
}

.player-overlay strong {
  max-width: 80%;
  font-size: 20px;
  text-align: center;
}

.article-card,
.side-card {
  padding: 26px;
}

.article-card p {
  color: #374151;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 40px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 32px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.footer-grid p {
  max-width: 540px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-grid a:hover {
  color: #fdba74;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
}

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

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

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    height: 64px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    bottom: 64px;
  }

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

  .hero-arrow {
    display: none;
  }

  .intro-panel,
  .detail-wrap,
  .footer-grid,
  .category-card {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    padding: 24px;
  }

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

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

  .movie-body {
    padding: 13px;
  }

  .movie-body h3 {
    font-size: 16px;
  }

  .detail-wrap {
    gap: 24px;
    padding-top: 54px;
  }

  .detail-poster {
    width: min(260px, 80%);
  }

  .wide-search,
  .filter-line {
    border-radius: 22px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .all-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    width: min(100% - 24px, 1180px);
    margin-top: 38px;
  }

  .page-hero {
    padding-top: 70px;
  }
}
