:root {
  --bg: #f9fafb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(229, 231, 235, 0.86);
  --dark: #111827;
  --dark-soft: #1f2937;
  --rose: #f43f5e;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

body {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #f3f4f6 100%);
  color: var(--text);
}

img {
  background: linear-gradient(135deg, #111827, #374151);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #4b5563);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 20px;
}

.brand-tagline {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.header-search {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.9);
}

.header-search input,
.mobile-search input,
.quick-search-form input,
.page-search-form input,
.filter-input,
.filter-grid select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  width: 100%;
  padding: 10px 8px 10px 18px;
}

.header-search button,
.mobile-search button,
.quick-search-form button,
.page-search-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: #111827;
}

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

.nav-link {
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: #111827;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #374151;
  background: transparent;
  font-size: 26px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  padding: 16px 24px 22px;
  background: rgba(255, 255, 255, 0.98);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  text-decoration: none;
  background: #f9fafb;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
}

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

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

.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-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.76) 48%, rgba(17, 24, 39, 0.32));
}

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

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-badge {
  margin-bottom: 20px;
  padding: 9px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  color: #ffffff;
  font-weight: 800;
}

.hero p {
  max-width: 720px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags a,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.primary-button {
  color: #111827;
  background: #ffffff;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

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

.max-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  margin-top: 64px;
}

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

.section-head h2 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.section-head a,
.text-link {
  color: #4b5563;
  text-decoration: none;
  font-weight: 700;
}

.eyebrow {
  color: #e11d48;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-search-section {
  max-width: 1120px;
  margin: -48px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 6;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quick-search-card h2 {
  font-size: 24px;
  font-weight: 800;
}

.quick-search-card p {
  margin-top: 8px;
  color: var(--muted);
}

.quick-search-form,
.page-search-form {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

.quick-search-form input,
.page-search-form input {
  flex: 1;
  padding: 12px 16px;
}

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

.category-tile,
.category-overview-card,
.story-card,
.ranking-panel,
.filter-panel,
.channel-strip {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
}

.category-tile {
  min-height: 132px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
}

.category-tile strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.category-tile span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.category-tile:hover,
.movie-card:hover,
.rank-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  text-decoration: none;
}

.poster img,
.compact-cover img,
.rank-cover img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster img {
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  opacity: 0;
}

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

.play-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

.movie-info {
  padding: 16px;
}

.movie-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-info h2 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.movie-info h2 a,
.rank-title {
  color: #111827;
  text-decoration: none;
}

.movie-info p,
.rank-info p,
.category-overview-card p,
.story-card p {
  color: var(--muted);
  line-height: 1.75;
}

.movie-info p {
  margin-top: 8px;
  min-height: 52px;
  font-size: 14px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags a {
  color: #4b5563;
  background: #f3f4f6;
  text-decoration: none;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.small-head {
  margin-bottom: 16px;
}

.small-head h2 {
  font-size: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  color: #374151;
  text-decoration: none;
  background: #f9fafb;
}

.rank-row:hover {
  background: #f3f4f6;
}

.rank-number {
  color: #e11d48;
  font-weight: 900;
}

.rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank-type {
  color: var(--muted);
  font-size: 12px;
}

.channel-area {
  margin-top: 64px;
  display: grid;
  gap: 18px;
}

.channel-strip {
  padding: 22px;
}

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

.compact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  text-decoration: none;
  color: #111827;
  background: #f9fafb;
}

.compact-cover {
  width: 76px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.compact-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.compact-body strong,
.compact-body em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-body strong {
  font-size: 14px;
}

.compact-body em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 220px;
  gap: 36px;
}

.footer-main p {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-group h2 {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 800;
}

.footer-group ul {
  display: grid;
  gap: 8px;
}

.footer-group a {
  color: #4b5563;
  text-decoration: none;
}

.footer-bottom {
  padding: 20px 24px;
  text-align: center;
  color: #6b7280;
  border-top: 1px solid var(--line);
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 76px 24px 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(244, 63, 94, 0.28), transparent 32%),
    linear-gradient(135deg, #111827, #1f2937 60%, #374151);
  text-align: center;
}

.page-hero h1 {
  max-width: 980px;
  margin: 10px auto 0;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.12;
}

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

.page-hero .eyebrow {
  color: #fda4af;
}

.breadcrumb {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.category-overview-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

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

.category-overview-title {
  display: inline-block;
  margin-bottom: 10px;
  color: #111827;
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card .compact-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-panel {
  margin-top: 32px;
  padding: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px 170px;
  gap: 12px;
}

.filter-input,
.filter-grid select {
  min-height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 0 14px;
  background: #ffffff;
}

.rank-page-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.rank-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-cover {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
}

.rank-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.rank-title {
  font-size: 22px;
  font-weight: 900;
}

.page-search-form {
  max-width: 760px;
  margin: 28px auto 0;
  background: rgba(255, 255, 255, 0.96);
}

.search-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.search-tags a {
  border-radius: 999px;
  padding: 10px 16px;
  color: #374151;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  text-decoration: none;
}

.detail-main {
  background: #ffffff;
}

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

.detail-backdrop,
.detail-mask {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.45;
}

.detail-mask {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72)),
    linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.92));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.36);
}

.detail-copy {
  color: #ffffff;
}

.detail-copy h1 {
  margin-top: 22px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.12;
}

.detail-copy .lead {
  max-width: 820px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.8);
}

.detail-meta span,
.rank-meta span,
.movie-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(243, 244, 246, 0.9);
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

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

.detail-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.breadcrumb.light {
  justify-content: flex-start;
  margin-top: 0;
}

.player-section {
  margin-top: -56px;
  position: relative;
  z-index: 4;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  font-size: 18px;
  font-weight: 800;
}

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

.play-circle {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

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

.story-card {
  padding: 28px;
}

.story-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 900;
}

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

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

  .hero {
    height: 600px;
  }

  .quick-search-card,
  .footer-inner,
  .detail-wrap,
  .detail-content,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-cover {
    max-width: 300px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-tagline {
    display: none;
  }

  .hero-content {
    padding: 0 18px;
  }

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

  .hero-actions,
  .quick-search-form,
  .page-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .category-grid,
  .compact-grid,
  .category-overview-card .compact-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .rank-title {
    font-size: 18px;
  }

  .page-hero {
    padding: 56px 18px 48px;
  }

  .max-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .detail-wrap {
    padding: 48px 18px 96px;
  }

  .player-section {
    margin-top: -76px;
  }
}
