:root {
  --red: #dc2626;
  --orange: #f97316;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  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: #111827;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 48%, #fff7ed 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 18px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #374151;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 10px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 55%, #b91c1c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image: linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 52px 52px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 56%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.08) contrast(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.96) 0%, rgba(185, 28, 28, 0.72) 45%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 700px;
  color: #ffffff;
  padding: 70px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 14px;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: #fde68a;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px);
}

.hero p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.btn-primary,
.btn-ghost,
.section-more,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.search-submit {
  color: var(--red);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover,
.search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

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

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(620px, 100%);
  margin-top: 28px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  font-size: 16px;
  border-radius: 12px;
  background: #ffffff;
}

.hero-search input {
  min-height: 46px;
  padding: 0 14px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

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

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

.content-section {
  padding: 54px 0;
}

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

.section-heading h1,
.section-heading h2,
.page-title h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-heading p,
.page-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2);
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #fdba74);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.08) 38%, rgba(0,0,0,0.7) 100%);
}

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  top: 10px;
  right: 10px;
  background: var(--red);
}

.type-badge {
  left: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.82);
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 30px;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-hover {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  color: var(--red);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  padding: 14px;
}

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.tag-row span,
.detail-tag,
.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #b91c1c;
  background: #fee2e2;
  font-size: 12px;
  font-weight: 750;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.18);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 82px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.rank-num {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  font-weight: 900;
}

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

.rank-text h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-title {
  padding: 48px 0 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 30px;
  align-items: stretch;
  padding: 34px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 52%, #f97316 100%);
  box-shadow: var(--shadow);
}

.video-box {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 22px;
  background: #020617;
}

.video-box video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
  cursor: pointer;
}

.play-layer.hidden {
  display: none;
}

.play-circle {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.play-layer:hover .play-circle {
  transform: scale(1.08);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
}

.detail-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 44px 0;
}

.article-card,
.side-card,
.search-panel,
.filter-panel {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.article-card {
  padding: 28px;
}

.article-card + .article-card {
  margin-top: 20px;
}

.article-card h2,
.side-card h2,
.search-panel h1,
.filter-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.side-card {
  padding: 20px;
}

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

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

.side-list img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.side-list strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.side-list span {
  color: var(--muted);
  font-size: 12px;
}

.search-panel,
.filter-panel {
  padding: 22px;
  margin-bottom: 28px;
}

.search-form,
.filter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 18px;
}

.filter-form {
  grid-template-columns: 1fr 220px;
}

.search-panel input,
.filter-panel input,
.filter-panel select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
}

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

.search-result {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f9fafb;
}

.search-result img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.search-result h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.search-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  color: var(--muted);
  background: #f9fafb;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

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

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

.footer-logo .brand-text {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

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

.footer-links a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fb923c;
}

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

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: #fee2e2;
  }

  .hero,
  .hero-content {
    min-height: 640px;
  }

  .hero-slide img {
    width: 100%;
    opacity: 0.3;
  }

  .hero-search,
  .search-form,
  .filter-form {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

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

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

  .rank-item .section-more {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-item img {
    width: 64px;
    height: 86px;
  }

  .detail-hero {
    padding: 18px;
  }

  .video-box,
  .video-box video {
    min-height: 240px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }
}
