html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #059669 0%, #0d9488 55%, #0891b2 100%);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon,
.footer-brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #059669;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(4, 120, 87, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: #d1fae5;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  content: "";
  background: #ffffff;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.top-search,
.search-page-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.top-search input,
.search-page-form input {
  width: 210px;
  padding: 10px 14px;
  color: #ffffff;
  outline: none;
  background: transparent;
}

.top-search input::placeholder,
.search-page-form input::placeholder {
  color: rgba(240, 253, 244, 0.9);
}

.top-search button,
.search-page-form button {
  height: 100%;
  padding: 10px 18px;
  color: #047857;
  font-weight: 700;
  background: #ffffff;
}

.mobile-toggle {
  display: none;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 600;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  height: clamp(520px, 68vh, 680px);
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
  color: #ffffff;
}

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #ecfdf5;
  background: #059669;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-kicker {
  padding: 8px 16px;
  margin-bottom: 18px;
}

.pill {
  padding: 6px 12px;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.38);
}

.hero p {
  max-width: 760px;
  margin-bottom: 24px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions,
.section-heading,
.toolbar,
.movie-meta-line,
.detail-title-block {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 14px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 14px 28px;
  color: #ffffff;
  background: #059669;
  box-shadow: 0 16px 35px rgba(5, 150, 105, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #047857;
}

.ghost-button {
  padding: 13px 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.light-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.slate-section {
  background: #f1f5f9;
}

.dark-section {
  color: #ffffff;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.section-heading {
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
}

.section-heading p {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.7;
}

.dark-section .section-heading h2,
.dark-section .section-heading p {
  color: #ffffff;
}

.dark-section .section-heading p {
  color: #cbd5e1;
}

.section-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #ecfdf5;
  font-size: 28px;
}

.split-heading {
  justify-content: space-between;
}

.compact-heading {
  align-items: flex-start;
}

.center-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

.text-link {
  color: #059669;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(5, 150, 105, 0.28);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #0f172a;
}

.poster-frame img,
.side-poster img,
.category-covers img,
.rank-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-frame img {
  transition: transform 0.5s ease;
}

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

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: #059669;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.corner-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 12px 0 10px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  display: -webkit-box;
  min-height: 50px;
  margin-bottom: 14px;
  overflow: hidden;
  color: #64748b;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta-line {
  gap: 8px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 13px;
}

.movie-meta-line span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
}

.rank-list,
.list-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.rank-link {
  display: grid;
  grid-template-columns: 42px 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-link:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.rank-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: #059669;
  font-weight: 900;
}

.rank-link img {
  height: 74px;
  border-radius: 12px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.movie-card-list .movie-card-link,
.list-link {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 180px;
}

.list-poster {
  height: 100%;
}

.list-body {
  padding: 20px;
}

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

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

.category-tile {
  display: grid;
  min-height: 220px;
  align-content: start;
  gap: 10px;
  border-radius: 22px;
  padding: 24px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.92);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  background: #334155;
}

.category-tile span,
.category-copy span {
  font-size: 34px;
}

.category-tile strong,
.category-copy h2 {
  font-size: 20px;
  font-weight: 900;
}

.category-tile em,
.category-copy p {
  color: #cbd5e1;
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
}

.category-tile small,
.category-copy small {
  color: #a7f3d0;
  font-size: 12px;
  line-height: 1.7;
}

.page-hero,
.category-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.26), transparent 32%),
    linear-gradient(110deg, #059669 0%, #0d9488 54%, #0f172a 100%);
}

.page-hero .container,
.category-hero .container {
  padding: 82px 0;
}

.page-hero h1,
.category-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
}

.page-hero p,
.category-hero p {
  max-width: 760px;
  color: #dcfce7;
  font-size: 19px;
  line-height: 1.8;
}

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

.category-overview-card a {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 240px;
  background: #0f172a;
}

.category-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px 28px 28px 0;
}

.category-copy p {
  color: #64748b;
}

.toolbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.toolbar label {
  display: grid;
  gap: 6px;
  flex: 1;
  color: #334155;
  font-weight: 800;
}

.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  color: #0f172a;
  outline: none;
  background: #ffffff;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px max(16px, calc((100% - 1180px) / 2));
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb a:hover {
  color: #059669;
}

.breadcrumb strong {
  color: #0f172a;
}

.player-section {
  background: #020617;
  padding: 32px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: #059669;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-shell.is-playing .big-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.88);
}

.detail-section {
  padding-top: 56px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.detail-title-block {
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
}

.detail-title-block h1 {
  color: #0f172a;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 900;
}

.detail-title-block p {
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 0;
}

.detail-meta span {
  color: #0f172a;
  background: #e2e8f0;
}

.content-card,
.info-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.review-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border-color: #fed7aa;
}

.content-card h2,
.info-card h2 {
  margin-bottom: 16px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.detail-paragraph {
  margin: 0 0 14px;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

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

.tag-list a {
  border-radius: 999px;
  padding: 8px 14px;
  color: #047857;
  background: #d1fae5;
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 24px;
  min-height: 460px;
  background: #0f172a;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.info-card ul {
  display: grid;
  gap: 12px;
}

.info-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.info-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-card span {
  color: #64748b;
}

.info-card strong {
  color: #0f172a;
  text-align: right;
}

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

.ranking-side {
  position: sticky;
  top: 100px;
}

.ranking-side h2 {
  margin-bottom: 16px;
  font-size: 26px;
  font-weight: 900;
}

.search-page-form {
  width: min(620px, 100%);
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.18);
}

.search-page-form input {
  flex: 1;
  width: auto;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
  padding: 52px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 440px;
  line-height: 1.8;
}

.site-footer h3 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer a:hover {
  color: #6ee7b7;
}

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

.small-button {
  padding: 12px 20px;
}

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

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

  .mobile-nav.is-open {
    display: block;
  }

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

  .two-column-section,
  .detail-layout,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .detail-side,
  .ranking-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 96px;
  }

  .hero-actions,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .three-cols,
  .four-cols,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-list .movie-card-link,
  .list-link,
  .category-overview-card a {
    grid-template-columns: 1fr;
  }

  .list-poster,
  .category-covers {
    height: 240px;
  }

  .poster-frame {
    height: 300px;
  }

  .category-copy {
    padding: 24px;
  }

  .side-poster {
    min-height: 360px;
  }
}
