:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --cyan: #0891b2;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

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

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #34d399, #06b6d4);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.28);
}

.brand-text,
.footer-logo {
  font-size: 22px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input {
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: #ffffff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

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

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

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.open {
  display: block;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f9fafb;
}

.content-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(52, 211, 153, 0.75), transparent 28%), linear-gradient(135deg, #065f46, #0891b2 48%, #1d4ed8);
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(18px);
  mix-blend-mode: overlay;
  animation: floatGlow 6s ease-in-out infinite;
}

.hero-glow.one {
  top: 70px;
  left: 8%;
}

.hero-glow.two {
  right: 7%;
  bottom: 70px;
  animation-delay: 1.8s;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, 20px, 0) scale(1.08);
  }
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 120, 87, 0.94), rgba(8, 145, 178, 0.76), rgba(29, 78, 216, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 390px;
  gap: 64px;
  align-items: center;
  padding: 88px 0 76px;
}

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

.hero-copy h1,
.page-hero h1,
.detail-main h1 {
  max-width: 820px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-main p {
  max-width: 760px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--emerald-dark);
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.2);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

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

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.38));
}

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

.hero-dot {
  width: 34px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.feature-strip {
  padding: 34px 0;
  background: #ffffff;
}

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

.feature-tile {
  padding: 26px;
  border: 1px solid #ecfdf5;
  border-radius: 24px;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.feature-tile strong {
  display: block;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
}

.feature-tile span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.content-section {
  padding: 72px 0;
  background: #ffffff;
}

.soft-bg {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

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

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

.section-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
}

.section-heading a,
.movie-line a,
.ranking-info a:hover,
.detail-aside a:hover,
.tag-cloud a:hover {
  color: var(--emerald);
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 24px;
  border: 1px solid #e6fffa;
  border-radius: 24px;
  background: linear-gradient(135deg, #ecfdf5, #ffffff 60%, #ecfeff);
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span,
.category-overview-card span {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.category-overview-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: var(--emerald);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

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

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

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

.poster-meta,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(5, 150, 105, 0.92);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(239, 68, 68, 0.92);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  min-height: 44px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--emerald);
}

.movie-tags,
.genre-tags,
.detail-meta,
.movie-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.movie-tags {
  margin: 10px 0;
}

.movie-tags span,
.genre-tags span,
.detail-meta span,
.detail-meta a {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 750;
}

.movie-info p {
  min-height: 58px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.movie-line {
  justify-content: space-between;
  margin-top: 14px;
  color: #9ca3af;
  font-size: 13px;
}

.compact-card .movie-info p {
  display: none;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
}

.horizontal-card span {
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
}

.horizontal-card a:not(.horizontal-poster) {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.horizontal-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  padding: 90px 0;
  color: #ffffff;
  background: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.2), transparent 24%), linear-gradient(135deg, #059669, #0891b2 55%, #2563eb);
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-chips,
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button,
.search-filters button {
  border-radius: 999px;
  padding: 9px 14px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 750;
}

.filter-chips button:hover,
.search-filters button:hover,
.search-filters button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.search-hero .big-search {
  margin-top: 28px;
  max-width: 720px;
}

.big-search input {
  flex: 1;
  width: 100%;
  min-height: 56px;
  font-size: 17px;
}

.search-filters {
  margin-bottom: 28px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 60px 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ranking-num {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  font-weight: 900;
}

.ranking-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
}

.ranking-info a {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.ranking-info p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.ranking-info span {
  display: block;
  margin-top: 8px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 800;
}

.detail-top {
  padding: 32px 0 70px;
  color: #ffffff;
  background: linear-gradient(180deg, #020617, #0f172a 60%, #111827);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.74);
}

.breadcrumbs a:hover {
  color: #34d399;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  border: 6px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.35);
}

.detail-main h1 {
  margin-top: 18px;
}

.detail-main p {
  color: rgba(255, 255, 255, 0.82);
}

.detail-main .primary-button {
  margin-top: 26px;
}

.player-section {
  padding: 56px 0;
  background: #030712;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.56));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-start span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 18px 38px rgba(5, 150, 105, 0.32);
  font-size: 30px;
}

.video-start strong {
  font-size: 18px;
}

.video-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}

.detail-article,
.detail-aside {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.detail-article {
  padding: 32px;
}

.detail-aside {
  align-self: start;
  padding: 24px;
}

.detail-article h2,
.detail-aside h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.tag-cloud,
.aside-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a,
.aside-links a {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 750;
}

.aside-links {
  flex-direction: column;
}

.aside-links a {
  border-radius: 14px;
}

.site-footer {
  padding: 44px 0 22px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 32px;
}

.footer-inner p {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: #f9fafb;
}

.footer-links a:hover {
  color: var(--emerald);
  background: #ecfdf5;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

.compact-footer {
  padding-top: 22px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .header-search {
    display: none;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .movie-grid,
  .wide-grid,
  .rank-grid,
  .category-movies {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    padding: 84px 0 94px;
  }

  .hero-poster {
    max-width: 260px;
    margin: 0 auto;
  }

  .feature-grid,
  .horizontal-grid,
  .footer-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    max-width: 260px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .content-section {
    padding: 50px 0;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-main h1 {
    font-size: 36px;
  }

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

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

  .movie-info {
    padding: 12px;
  }

  .movie-title {
    min-height: 40px;
    font-size: 14px;
  }

  .movie-tags,
  .movie-info p {
    display: none;
  }

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

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

  .ranking-row {
    grid-template-columns: 46px 70px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-info p {
    display: none;
  }

  .filter-bar {
    align-items: stretch;
  }

  .filter-bar input,
  .big-search input {
    width: 100%;
  }

  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-article {
    padding: 22px;
  }
}
