* {
  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: #f9fafb;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #064e3b;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo {
  font-size: 22px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669, #0d9488, #06b6d4);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 9px 14px;
  color: #374151;
  border-radius: 999px;
  font-size: 15px;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #047857;
  background: #ecfdf5;
}

.nav-toggle {
  display: none;
  border: 0;
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 9px 14px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488, #06b6d4);
}

.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-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(6, 78, 59, 0.92), rgba(6, 95, 70, 0.62), rgba(17, 24, 39, 0.48));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 76px 0;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #047857;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #d1fae5;
}

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

.hero-copy h2 {
  font-size: clamp(36px, 6vw, 64px);
}

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

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

.btn-primary,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488);
  box-shadow: 0 16px 32px rgba(5, 150, 105, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(5, 150, 105, 0.32);
}

.btn-light {
  color: #047857;
  background: #ffffff;
}

.btn-light:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: #047857;
  background: #ecfdf5;
}

.hero-copy .btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-search {
  width: min(620px, 100%);
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-search input,
.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: #ffffff;
  border-radius: 14px;
  padding: 13px 16px;
}

.hero-search button,
.search-panel button {
  border: 0;
  color: #ffffff;
  background: #059669;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

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

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

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.content-panel h2,
.player-section h2,
.related-section h2 {
  margin: 0;
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p,
.page-hero p {
  color: #6b7280;
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  height: 245px;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.compact-card .poster-link {
  height: 190px;
}

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

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

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #047857;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0);
  font-size: 40px;
  opacity: 0;
  transition: 0.24s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.32);
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin: 0 0 8px;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
  color: #059669;
}

.card-text {
  min-height: 50px;
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

.category-card {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid #d1fae5;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #6ee7b7;
  box-shadow: 0 20px 36px rgba(5, 150, 105, 0.14);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #064e3b;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 88px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #059669, #0d9488);
  font-weight: 900;
}

.rank-poster {
  width: 88px;
  height: 66px;
  overflow: hidden;
  border-radius: 14px;
  background: #064e3b;
}

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

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rank-info p,
.rank-info span {
  margin: 0;
  color: #6b7280;
  line-height: 1.55;
}

.rank-info span {
  display: block;
  margin-top: 4px;
}

.rank-action {
  padding: 9px 14px;
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  font-weight: 800;
}

.page-hero {
  padding: 70px 0 42px;
  background:
    radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff, #f0fdfa);
}

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

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
}

.search-panel {
  display: flex;
  gap: 10px;
  width: min(720px, 100%);
  margin-top: 26px;
  padding: 8px;
  border: 1px solid #d1fae5;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 30px;
}

.filter-chip {
  border: 0;
  color: #374151;
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: #059669;
  box-shadow: none;
}

.empty-state {
  display: none;
  padding: 28px;
  color: #6b7280;
  text-align: center;
  border-radius: 20px;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

.filter-card.is-hidden {
  display: none !important;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 22px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #047857;
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 34px;
  align-items: stretch;
  margin-bottom: 42px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #064e3b;
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.18);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid #d1fae5;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(16, 185, 129, 0.14), transparent 34%),
    #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.detail-line {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.player-section,
.content-panel,
.related-section {
  margin-bottom: 44px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.player-section h2,
.content-panel h2,
.related-section h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #030712;
  aspect-ratio: 16 / 9;
}

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

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(3, 7, 18, 0.48);
  cursor: pointer;
  transition: 0.24s ease;
}

.play-mask span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: #047857;
  border-radius: 999px;
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.play-mask strong {
  display: block;
  font-size: 20px;
}

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

.content-panel p {
  margin: 0 0 20px;
  color: #374151;
  line-height: 1.95;
  font-size: 17px;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
  .card-grid,
  .card-grid.three,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster img {
    max-height: 620px;
  }
}

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid #d1fae5;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  }

  .main-nav.is-open {
    display: flex;
  }

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

  .hero-search,
  .search-panel {
    flex-direction: column;
  }

  .hero-search button,
  .search-panel button {
    min-height: 44px;
  }

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

  .rank-row {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-action {
    grid-column: 2 / -1;
    text-align: center;
  }

  .detail-info,
  .player-section,
  .content-panel,
  .related-section {
    padding: 22px;
    border-radius: 22px;
  }
}
