:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --amber: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f9fafb 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
  font-size: 14px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-link {
  color: #4b5563;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose);
}

.search-toggle,
.mobile-toggle,
.primary-btn,
.secondary-btn,
.play-button,
.filter-btn {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.search-toggle {
  color: #ffffff;
  background: var(--rose);
  padding: 10px 17px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.22);
}

.mobile-toggle {
  display: none;
  color: #374151;
  background: transparent;
  font-size: 24px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 24px 18px;
  background: #ffffff;
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  padding: 10px 0;
  color: #374151;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 520px;
  height: 70vh;
  overflow: hidden;
  background: linear-gradient(110deg, #881337 0%, #7c2d12 100%);
}

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

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

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 84px 24px 70px;
  display: flex;
  align-items: center;
}

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

.hero-badge,
.poster-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose);
  font-weight: 800;
}

.hero-badge {
  padding: 6px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.28);
}

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

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-control {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 22px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.main-section,
.detail-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  color: var(--rose);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  background: #e5e7eb;
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.52) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

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

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

.poster-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  font-size: 12px;
}

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

.movie-card h3 {
  min-height: 54px;
  margin: 0 0 9px;
  color: #111827;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 850;
}

.movie-card h3 a:hover {
  color: var(--rose);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag-list span {
  color: #9f1239;
  background: #fff1f2;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.category-tile {
  min-height: 170px;
  padding: 26px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #be123c, #f59e0b);
  box-shadow: 0 18px 42px rgba(190, 18, 60, 0.18);
  transition: transform 0.25s ease;
}

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

.category-tile h2,
.category-tile h3 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

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

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

.rank-number {
  color: var(--rose);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  width: 92px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 20px;
  font-weight: 850;
}

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

.rank-badge {
  padding: 6px 12px;
  font-size: 13px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px;
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.filter-input {
  min-width: 260px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
}

.filter-input:focus,
.search-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.breadcrumb {
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose);
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 30px;
  align-items: start;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #020617;
  z-index: 2;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.22), rgba(0, 0, 0, 0.72));
}

.play-button {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

.detail-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.detail-card h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 750;
}

.detail-card p,
.article-block p {
  color: #4b5563;
  line-height: 2;
}

.article-block {
  margin-top: 28px;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.article-block h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

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

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

.side-poster-content {
  padding: 20px;
}

.side-poster-content h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.search-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

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

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.search-panel {
  position: relative;
  max-width: 760px;
  max-height: min(720px, calc(100vh - 70px));
  overflow: auto;
  margin: 36px auto;
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.search-panel h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
}

.search-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 24px;
}

.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
}

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

.search-result {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

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

.search-result h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 17px;
  font-weight: 850;
}

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

.empty-state {
  padding: 22px;
  border-radius: 18px;
  color: #6b7280;
  background: #f9fafb;
  text-align: center;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 30px;
}

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

.footer-grid p,
.footer-grid a {
  color: #6b7280;
  line-height: 1.8;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--rose);
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #d1d5db;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .header-inner {
    padding: 0 18px;
  }

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

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

@media (max-width: 640px) {
  .search-toggle {
    padding: 8px 12px;
  }

  .hero {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    padding-top: 92px;
  }

  .hero-controls {
    left: 24px;
    right: auto;
  }

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

  .poster-link {
    height: 230px;
  }

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

  .movie-card h3 {
    min-height: auto;
    font-size: 16px;
  }

  .movie-card p {
    display: none;
  }

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

  .rank-badge {
    display: none;
  }

  .rank-thumb {
    width: 70px;
    height: 94px;
  }

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

  .search-panel {
    margin: 20px 14px;
    padding: 22px;
  }
}
