* {
  box-sizing: border-box;
}

:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --cyan: #0891b2;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --rose: #e11d48;
  --amber: #d97706;
  --blue: #2563eb;
  --purple: #7c3aed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 52%, #f8fafc 100%);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.32);
  font-size: 14px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  color: #334155;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.site-search {
  position: relative;
  width: min(320px, 32vw);
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: visible;
}

.site-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 48px 10px 18px;
  border-radius: 999px;
  color: #0f172a;
  background: transparent;
}

.site-search input:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.site-search button {
  position: absolute;
  right: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald);
  cursor: pointer;
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 480px;
  overflow: auto;
  padding: 8px;
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.search-results.open {
  display: block;
}

.search-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-item:hover {
  background: #f1f5f9;
}

.search-item img {
  width: 88px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
}

.search-item strong,
.search-item span,
.search-item em {
  display: block;
}

.search-item strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.search-item span,
.search-empty {
  color: #64748b;
  font-size: 12px;
}

.search-item em {
  color: #475569;
  font-size: 12px;
  font-style: normal;
  margin-top: 2px;
}

.search-empty {
  padding: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #0f172a;
  background: #f1f5f9;
}

.page-shell {
  min-height: 72vh;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal), var(--cyan));
}

.hero-track,
.hero-slide {
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  background-image: linear-gradient(110deg, rgba(5, 150, 105, 0.94), rgba(13, 148, 136, 0.72), rgba(8, 145, 178, 0.55)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.20), transparent 22%), rgba(0, 0, 0, 0.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 24px 116px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.62fr);
  gap: 64px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  color: #ecfeff;
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ecfeff;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.7;
}

.hero-tags,
.detail-tags,
.movie-tags,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 26px 0;
}

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

.hero-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero-actions,
.page-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--emerald-dark);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.20);
}

.btn-ghost,
.btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.36);
}

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

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

.hero-poster span {
  position: absolute;
  inset: auto 26px 26px auto;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--emerald);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 32px;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.featured-lift {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: -72px auto 0;
  padding: 0 24px;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.soft-band {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: linear-gradient(135deg, #eff6ff, #ecfeff, #f0fdf4);
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ecfdf5;
  font-size: 22px;
}

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-line {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), transparent);
}

.section-heading-rose .section-line {
  background: linear-gradient(90deg, var(--rose), transparent);
}

.section-heading-amber .section-line {
  background: linear-gradient(90deg, var(--amber), transparent);
}

.section-heading-blue .section-line {
  background: linear-gradient(90deg, var(--blue), transparent);
}

.section-heading-purple .section-line {
  background: linear-gradient(90deg, var(--purple), transparent);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.15);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
  transition: opacity 0.25s ease;
}

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

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--emerald);
  background: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.movie-info p {
  min-height: 44px;
  margin: 10px 0 12px;
  display: -webkit-box;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
}

.movie-tags {
  margin-top: 12px;
}

.movie-tags span {
  padding: 5px 8px;
  color: #334155;
  background: #f1f5f9;
}

.category-grid,
.category-panel-grid,
.ranking-feature {
  display: grid;
  gap: 20px;
}

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

.category-tile,
.category-panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.category-tile {
  min-height: 154px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.category-tile span,
.category-panel-name {
  display: block;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-panel p {
  margin: 12px 0 0;
  color: #64748b;
}

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

.category-panel {
  min-height: 260px;
  padding: 26px;
}

.category-panel-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--emerald-dark);
  font-weight: 900;
}

.category-thumbs {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 74px);
  gap: 8px;
  opacity: 0.96;
}

.category-thumbs img {
  width: 74px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.4fr);
  gap: 44px;
  align-items: start;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.compact-poster-wrap {
  position: relative;
  flex: 0 0 120px;
  height: 78px;
  overflow: hidden;
  border-radius: 12px;
  background: #e2e8f0;
}

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

.compact-body {
  min-width: 0;
  display: block;
}

.compact-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-body span,
.compact-body em {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-body em {
  margin-top: 3px;
  color: #475569;
  font-style: normal;
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald);
  font-weight: 900;
}

.page-hero {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 56px 32px;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal), var(--cyan));
  box-shadow: 0 28px 56px rgba(8, 145, 178, 0.22);
}

.mini-hero,
.category-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
}

.mini-hero::after,
.category-hero::after,
.ranking-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -70px;
  top: -110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-bottom: 18px;
}

.page-hero p,
.page-hero .hero-pill,
.page-filter,
.filter-chips {
  position: relative;
  z-index: 1;
}

.page-filter {
  margin-top: 28px;
}

.page-filter input {
  min-width: min(460px, 100%);
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
  color: #0f172a;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.page-filter button,
.filter-chips button {
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--emerald-dark);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.filter-chips {
  margin-top: 16px;
}

.filter-chips button {
  height: 38px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
}

.filter-chips button.active {
  color: var(--emerald-dark);
  background: #ffffff;
}

.ranking-feature {
  max-width: 1280px;
  margin: -42px auto 0;
  padding: 0 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  z-index: 2;
}

.ranking-hero-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.20);
}

.ranking-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.5s ease;
}

.ranking-hero-card:hover img {
  transform: scale(1.08);
}

.ranking-hero-card span,
.ranking-hero-card strong,
.ranking-hero-card em {
  position: relative;
  z-index: 2;
  display: block;
}

.ranking-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

.ranking-hero-card span {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--emerald);
  font-weight: 900;
}

.ranking-hero-card strong {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 48px;
  font-size: 24px;
  line-height: 1.15;
}

.ranking-hero-card em {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  color: #cbd5e1;
  font-style: normal;
}

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

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

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #0f172a;
  font-weight: 900;
}

.rank-row img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

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

.rank-row-main strong {
  color: #0f172a;
  font-size: 17px;
}

.rank-row-main em,
.rank-row-meta {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.breadcrumb {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--emerald-dark);
  font-weight: 800;
}

.detail-shell {
  background: #f8fafc;
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-main,
.aside-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.detail-main {
  overflow: hidden;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.78));
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}

.player-cover.hidden {
  display: none;
}

.player-play {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--emerald);
  background: #ffffff;
  font-size: 28px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
}

.player-cover:hover .player-play {
  transform: scale(1.08);
}

.player-cover strong {
  max-width: 760px;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.2;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #64748b;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 800;
}

.detail-tags {
  margin: 18px 0 24px;
}

.detail-tags span,
.detail-tags a {
  padding: 7px 12px;
  color: #065f46;
  background: #ecfdf5;
}

.detail-tags a {
  color: #ffffff;
  background: var(--emerald);
}

.detail-content section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.detail-content h2,
.aside-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.25;
}

.detail-content p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.85;
}

.lead-text {
  margin-bottom: 14px !important;
  color: #0f766e !important;
  font-weight: 800;
}

.detail-aside {
  display: grid;
  gap: 18px;
}

.aside-card {
  padding: 20px;
}

.aside-link {
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #0f766e;
  background: #ecfdf5;
  font-weight: 900;
}

.site-footer {
  margin-top: 72px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b 56%, #0f172a);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px 38px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #6ee7b7;
  font-size: 17px;
}

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.20);
  color: #94a3b8;
  font-size: 14px;
}

.footer-bottom button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--emerald);
  font-weight: 800;
  cursor: pointer;
}

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

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

  .slim-grid,
  .category-panel-grid,
  .ranking-feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 900px) {
  .site-nav-wrap {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.22);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    display: grid;
    gap: 8px;
  }

  .nav-link {
    justify-content: center;
  }

  .site-search {
    width: 100%;
  }

  .hero,
  .hero-track,
  .hero-slide {
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
  }

  .hero-poster {
    max-width: 520px;
    width: 100%;
  }

  .hero-arrow {
    display: none;
  }

  .featured-lift {
    margin-top: -42px;
  }

  .movie-grid,
  .wide-grid,
  .slim-grid,
  .category-grid,
  .category-panel-grid,
  .ranking-feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 92px minmax(0, 1fr);
  }

  .rank-row-meta {
    grid-column: 3;
  }
}

@media (max-width: 620px) {
  .site-nav-wrap,
  .content-section,
  .featured-lift,
  .breadcrumb,
  .detail-layout,
  .ranking-feature {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 18px;
  }

  .hero,
  .hero-track,
  .hero-slide {
    min-height: 720px;
  }

  .hero-content {
    min-height: 720px;
    padding-left: 16px;
    padding-right: 16px;
    gap: 22px;
  }

  .hero-actions,
  .page-filter {
    align-items: stretch;
  }

  .btn,
  .page-filter input,
  .page-filter button {
    width: 100%;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .page-hero {
    margin: 18px 16px 0;
    padding: 36px 20px;
    border-radius: 24px;
  }

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

  .section-line {
    width: 100%;
    flex: auto;
  }

  .movie-grid,
  .wide-grid,
  .slim-grid,
  .category-grid,
  .category-panel-grid,
  .ranking-feature,
  .detail-aside {
    grid-template-columns: 1fr;
  }

  .movie-title {
    min-height: auto;
  }

  .rank-row {
    grid-template-columns: 38px 86px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-row img {
    width: 86px;
    height: 58px;
  }

  .rank-row-meta {
    grid-column: 1 / -1;
  }

  .detail-content {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
