:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --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: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 16px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-text {
  font-size: 25px;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

.logo-mark.small {
  width: 30px;
  height: 30px;
  border-radius: 11px;
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

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

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

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--gray-700);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--gray-100);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-nav-link:hover {
  background: var(--rose-50);
  color: var(--rose-500);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(244, 63, 94, 0.28), transparent 28%), linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
  padding: 90px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow.rose {
  background: var(--rose-50);
  color: var(--rose-600);
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.movie-tags span,
.detail-meta span,
.tag-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  backdrop-filter: blur(12px);
}

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

.btn-primary,
.btn-glass,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.34);
}

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

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.btn-secondary {
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  width: min(100% - 32px, 1280px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.26);
}

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

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

.hero-dot.active {
  width: 32px;
  background: var(--white);
}

.quick-search-section {
  margin-top: -46px;
  position: relative;
  z-index: 8;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.quick-search-card h2,
.section-heading h2,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

.quick-search-card h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.search-panel {
  position: relative;
}

.search-panel input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 48px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  outline: 0;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-panel input:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
  background: var(--white);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rose-500);
  font-size: 25px;
  z-index: 1;
}

.section-block {
  padding: 72px 16px;
}

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

.section-heading h2 {
  font-size: clamp(28px, 3.8vw, 44px);
}

.section-heading.light {
  color: var(--white);
}

.text-link {
  color: var(--rose-600);
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link.light {
  color: var(--white);
}

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

.movie-grid.compact,
.ranking-grid {
  gap: 18px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--gray-100);
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.75));
  opacity: 0.85;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 36px;
  height: 28px;
  padding: 0 9px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

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

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

.movie-info {
  padding: 15px;
}

.movie-tags span {
  padding: 5px 8px;
  background: var(--rose-50);
  color: var(--rose-600);
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 17px;
  line-height: 1.4;
}

.movie-info p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.category-band {
  padding: 76px 0;
  background: linear-gradient(135deg, #111827, #3f1231 46%, #831843);
}

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

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

.category-tile,
.overview-card,
.support-card,
.article-card,
.side-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-tile {
  padding: 18px;
  color: var(--gray-900);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-4px);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile h3,
.overview-card h2,
.support-card h2,
.article-card h2,
.side-card h2 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.category-tile p,
.overview-card p,
.support-card p,
.article-card p,
.side-card dd {
  color: var(--gray-600);
  line-height: 1.75;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), #8f1237);
}

.page-hero.soft {
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--rose-50), var(--white));
}

.page-hero.ranking-hero {
  background: linear-gradient(135deg, #111827, #4c1235 52%, #be123c);
}

.page-hero .container-custom {
  padding-top: 76px;
  padding-bottom: 76px;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: inherit;
  opacity: 0.82;
  font-size: 18px;
  line-height: 1.8;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: end;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-art {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.overview-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.overview-card span {
  display: inline-flex;
  margin-top: 12px;
  color: var(--rose-600);
  font-weight: 800;
}

.detail-hero {
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.detail-hero-inner {
  padding-top: 52px;
  padding-bottom: 60px;
}

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

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: end;
}

.detail-title-row > img {
  width: 220px;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.detail-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 68px);
}

.detail-hero p {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 42px;
  padding-bottom: 76px;
}

.player-section {
  margin-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #050816;
  box-shadow: var(--shadow-lg);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.28), rgba(5, 8, 22, 0.76));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 20px 46px rgba(244, 63, 94, 0.38);
  font-size: 30px;
  text-indent: 4px;
}

.player-overlay span:last-child {
  font-size: 18px;
  font-weight: 800;
}

.article-card {
  padding: 30px;
  margin-bottom: 28px;
}

.article-card h2 {
  font-size: 26px;
}

.article-card p + h2 {
  margin-top: 28px;
}

.article-card p {
  margin: 0;
  font-size: 16px;
}

.tag-links {
  margin-top: 26px;
}

.tag-links a {
  padding: 7px 12px;
  color: var(--rose-600);
  background: var(--rose-50);
}

.tag-links a:hover {
  background: var(--rose-100);
}

.detail-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
  position: sticky;
  top: 100px;
}

.side-card {
  padding: 22px;
}

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

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

.side-card dd {
  margin: 0;
}

.side-card.accent {
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, var(--rose-50), var(--white));
}

.side-card.accent a {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white);
  color: var(--rose-600);
  font-weight: 800;
}

.related-block {
  padding: 34px 0 0;
}

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

.support-card {
  padding: 28px;
}

.site-footer {
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
  padding-top: 54px;
  padding-bottom: 40px;
}

.footer-grid p {
  max-width: 430px;
  color: var(--gray-600);
  line-height: 1.75;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

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

.footer-grid a {
  color: var(--gray-600);
  font-size: 14px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 16px 26px;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--rose-500);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.is-filtered-out {
  display: none !important;
}

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

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

  .detail-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

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

  .quick-search-card,
  .page-hero-inner,
  .overview-card,
  .detail-title-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-title-row > img {
    width: 180px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container-custom {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    height: 66px;
  }

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

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

  .hero-copy {
    padding: 70px 0 110px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-hero p {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 22px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .quick-search-card,
  .article-card,
  .side-card,
  .support-card {
    padding: 20px;
    border-radius: 18px;
  }

  .section-block {
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .overview-grid,
  .support-grid,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .movie-cover {
    height: 100%;
  }

  .movie-info h3 {
    min-height: auto;
  }

  .detail-hero-inner {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .detail-title-row > img {
    width: 148px;
  }
}
