:root {
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #f97316;
  --blue: #2563eb;
  --green: #16a34a;
  --purple: #7c3aed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #f3f4f6;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0));
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header.is-solid,
.site-header.is-scrolled {
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.site-header.is-solid .brand-mark,
.site-header.is-scrolled .brand-mark,
.footer-brand .brand-mark {
  background: var(--amber);
  box-shadow: none;
}

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

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

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

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.site-header.is-solid .header-search,
.site-header.is-scrolled .header-search {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
}

.header-search input {
  width: 100%;
  color: inherit;
  background: transparent;
}

.header-search input::placeholder {
  color: currentColor;
  opacity: 0.65;
}

.search-icon {
  font-size: 20px;
  line-height: 1;
}

.menu-toggle {
  display: none;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 28px;
}

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

.mobile-menu.is-open {
  display: block;
}

.mobile-search input,
.mobile-link {
  width: 100%;
  display: block;
  border-radius: 14px;
  padding: 13px 16px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: max(28px, calc((100vw - 1180px) / 2));
  right: 28px;
  bottom: 86px;
  max-width: 760px;
  color: #ffffff;
}

.hero-badges,
.detail-badges,
.hero-tags,
.tag-list,
.quick-cats,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges a,
.hero-badges span,
.detail-badges a,
.detail-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero-badges a,
.detail-badges a {
  background: var(--amber);
}

.hero-badges span:nth-child(2),
.detail-badges span:nth-child(2) {
  background: rgba(37, 99, 235, 0.92);
}

.hero-badges span:nth-child(3),
.detail-badges span:nth-child(3) {
  background: rgba(22, 163, 74, 0.92);
}

.hero-badges span:nth-child(4),
.detail-badges span:nth-child(4) {
  background: rgba(124, 58, 237, 0.92);
}

.hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-list span,
.footer-tags span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #d97706;
  background: #fffbeb;
  font-size: 14px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.large-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 28px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.large-search button {
  color: #ffffff;
  background: var(--amber);
  border: 0;
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.28);
}

.primary-btn:hover,
.large-search button:hover {
  background: var(--amber-dark);
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(16px);
  font-size: 38px;
  line-height: 1;
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 36px;
  background: #ffffff;
}

.quick-panel {
  position: relative;
  z-index: 2;
  margin-top: -54px;
  padding: 0 16px 48px;
}

.quick-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  border-radius: 26px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-inner h2 {
  margin: 0 0 6px;
  font-size: 30px;
}

.quick-inner p {
  margin: 0 0 20px;
  color: var(--muted);
}

.large-search {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.large-search input {
  flex: 1;
  padding: 12px 18px;
  background: transparent;
}

.quick-cats {
  margin-top: 18px;
}

.quick-cats a {
  border-radius: 999px;
  padding: 9px 14px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 700;
}

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

.category-block {
  padding-top: 36px;
}

.section-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}

.more-link {
  color: var(--amber);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.16);
}

.movie-card a,
.poster-wrap,
.card-body,
.card-meta {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
  border-radius: 8px;
  padding: 5px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: var(--amber);
}

.poster-tags {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-tags {
  opacity: 1;
}

.poster-tags span {
  border-radius: 8px;
  padding: 5px 8px;
  color: #ffffff;
  background: var(--amber);
  font-size: 12px;
  font-weight: 700;
}

.poster-tags span + span {
  background: var(--blue);
}

.card-body {
  padding: 14px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--amber);
}

.card-line {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.card-meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-meta em {
  flex-shrink: 0;
  border-radius: 7px;
  padding: 4px 8px;
  color: #92400e;
  background: #fef3c7;
  font-style: normal;
  font-weight: 800;
}

.page-main {
  padding-top: 96px;
}

.page-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 260px;
  margin: 0 auto 24px;
  overflow: hidden;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7c2d12 55%, #f97316);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rank-hero {
  min-height: 360px;
  align-items: flex-end;
}

.rank-hero > img,
.rank-hero .hero-layer {
  position: absolute;
  inset: 0;
}

.rank-hero > div {
  position: relative;
  z-index: 2;
}

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

.category-tile {
  min-height: 280px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.category-tile a {
  position: relative;
  display: block;
  min-height: 280px;
  color: #ffffff;
  background: #111827;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.tile-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.14));
}

.tile-body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.tile-body strong {
  display: block;
  font-size: 26px;
}

.tile-body em {
  display: block;
  margin-top: 10px;
  color: #e5e7eb;
  font-style: normal;
  line-height: 1.6;
}

.tile-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tile-samples span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.17);
  font-size: 12px;
}

.filter-bar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 8px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.global-filter {
  grid-template-columns: 1fr 170px 170px 170px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  background: #f3f4f6;
}

.filter-status {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.player-card,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

.player-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  text-align: center;
}

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

.play-ring {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 20px 45px rgba(217, 119, 6, 0.38);
  font-size: 30px;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 22px 0 16px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.highlight-line {
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 18px;
  color: #78350f;
  background: #fffbeb;
  font-weight: 800;
  line-height: 1.8;
}

.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-section p,
.review-box {
  color: #374151;
  line-height: 1.9;
  white-space: pre-line;
}

.review-box {
  border-radius: 18px;
  padding: 22px;
  background: #fffbeb;
}

.side-card {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.side-list {
  display: grid;
  gap: 16px;
}

.movie-card-small a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
}

.movie-card-small .poster-wrap {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.movie-card-small .card-body {
  padding: 10px 10px 10px 0;
}

.movie-card-small .card-body strong {
  min-height: auto;
  font-size: 15px;
}

.movie-card-small .card-line,
.movie-card-small .poster-tags {
  display: none;
}

.movie-card-small .card-meta {
  display: block;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(to bottom, #111827, #020617);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

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

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

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin: 9px 0;
}

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

.footer-tags span {
  display: inline-flex;
  margin: 0 7px 8px 0;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #6b7280;
  font-size: 14px;
}

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

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

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

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

  .hero {
    height: 600px;
  }

  .hero-content {
    left: 22px;
    bottom: 70px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .large-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .section-topline,
  .page-hero,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-grid,
  .detail-layout,
  .footer-grid,
  .filter-bar,
  .global-filter {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 64px;
  }

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

  .hero {
    height: 560px;
  }

  .hero-badges span:nth-child(n + 3),
  .hero-tags {
    display: none;
  }

  .quick-inner,
  .page-hero,
  .detail-content {
    padding: 22px;
  }

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

  .card-body strong {
    font-size: 15px;
  }

  .movie-card-small a {
    grid-template-columns: 82px 1fr;
  }
}
