:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --emerald-500: #22c55e;
  --cyan-500: #06b6d4;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --green-50: #f0fdf4;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, #f0fdf4 0%, #f9fafb 32%, #ffffff 100%);
}

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

img {
  display: block;
  width: 100%;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(90deg, #16a34a 0%, #10b981 48%, #059669 100%);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.28);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #10b981;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.36), 0 8px 20px rgba(4, 120, 87, 0.28);
}

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

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 3px;
  color: #dcfce7;
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  padding: 8px 0;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: #ffffff;
  transition: transform 0.2s ease;
}

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

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

.nav-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.catalog-filter input {
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  outline: none;
  color: #ffffff;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  transition: width 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 190px;
  padding: 10px 16px;
}

.nav-search input:focus {
  width: 250px;
  background: rgba(255,255,255,0.26);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.20);
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.search-page-form input::placeholder,
.catalog-filter input::placeholder {
  color: rgba(255,255,255,0.74);
}

.nav-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: #065f46;
  background: #ffffff;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffffff;
}

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

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  font-weight: 700;
}

.mobile-link.is-active,
.mobile-link:hover {
  background: rgba(255,255,255,0.20);
}

.mobile-search {
  margin-top: 4px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: #064e3b;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(34, 197, 94, 0.55), transparent 32%),
    linear-gradient(105deg, rgba(3, 7, 18, 0.88) 0%, rgba(6, 95, 70, 0.78) 46%, rgba(3, 7, 18, 0.38) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.36;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  align-items: center;
  padding: 88px 0 110px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 13px;
  border-radius: 999px;
  color: #047857;
  background: #dcfce7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow,
.page-hero .eyebrow {
  color: #ffffff;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 14px 40px rgba(0,0,0,0.28);
}

.hero-copy p,
.page-hero p {
  max-width: 690px;
  color: rgba(255,255,255,0.88);
  font-size: 19px;
  line-height: 1.78;
}

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

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

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

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.34);
}

.primary-button.block {
  display: flex;
  width: 100%;
  margin-top: 18px;
}

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

.hero-cover {
  position: relative;
  display: block;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0,0,0,0.38);
  transform: rotate(2deg);
}

.hero-cover::after {
  content: "";
  display: block;
  padding-top: 138%;
}

.hero-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.34);
  cursor: pointer;
}

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

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

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

.section-head.centered {
  align-items: center;
}

.section-head.simple {
  align-items: center;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 10px 0 0;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-head a {
  color: #047857;
  font-weight: 900;
}

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

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

.category-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(5, 150, 105, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card-main {
  position: relative;
  min-height: 190px;
  padding: 26px;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 55%, #cffafe 100%);
}

.category-card-main::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -20px;
  top: -20px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
}

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.28);
}

.category-card h2 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 18px 24px 24px;
}

.category-samples a {
  color: #047857;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card-large {
  display: grid;
  grid-template-columns: 48% 1fr;
  min-height: 420px;
}

.movie-card-large .movie-poster::after {
  padding-top: 0;
}

.movie-card-large .movie-info {
  align-self: center;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #065f46, #111827);
}

.movie-poster::after {
  content: "";
  display: block;
  padding-top: 138%;
}

.movie-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 54%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.56));
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #10b981;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  transform: scale(0.94);
  transition: transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.movie-info {
  padding: 18px;
}

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta-line a {
  color: #047857;
}

.movie-info h3 {
  margin: 10px 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.32;
}

.movie-info h3 a:hover,
.compact-card h3 a:hover {
  color: #059669;
}

.movie-info p {
  margin: 0 0 13px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.68;
}

.tag-row span {
  padding: 5px 8px;
  color: #047857;
  background: #ecfdf5;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.compact-cover {
  position: relative;
  display: block;
  height: 124px;
  overflow: hidden;
  border-radius: 14px;
  background: #064e3b;
}

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

.compact-card h3 {
  margin: 0 0 7px;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
}

.compact-card p {
  margin: 0 0 8px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.56;
}

.compact-card span {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.compact-rank {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900 !important;
}

.ranking-strip {
  padding: 78px 0;
  color: #ffffff;
  background: radial-gradient(circle at 20% 10%, rgba(16,185,129,0.48), transparent 28%), linear-gradient(135deg, #064e3b, #111827);
}

.ranking-strip h2 {
  margin: 14px 0;
  font-size: clamp(32px, 5vw, 56px);
}

.ranking-strip p {
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
}

.ranking-grid-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.ranking-list .compact-card,
.ranking-full .compact-card {
  box-shadow: none;
}

.ranking-strip .compact-card {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
}

.ranking-strip .compact-card h3,
.ranking-strip .compact-card p,
.ranking-strip .compact-card span {
  color: #ffffff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  color: #ffffff;
  background-image:
    linear-gradient(115deg, rgba(6,78,59,0.94), rgba(17,24,39,0.84)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.18;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 18px 0 16px;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.76);
  font-size: 14px;
}

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

.breadcrumb strong {
  color: #ffffff;
}

.filter-head {
  align-items: center;
}

.catalog-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  font-weight: 800;
}

.catalog-filter input {
  width: min(360px, 58vw);
  padding: 13px 18px;
  color: var(--gray-800);
  border-color: rgba(16, 185, 129, 0.24);
  background: #ffffff;
}

.catalog-filter input::placeholder {
  color: var(--gray-500);
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 30px;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-top: 28px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
}

.watch-section {
  padding: 28px 0 38px;
  background: radial-gradient(circle at 30% 0%, rgba(16,185,129,0.26), transparent 34%), #050505;
}

.watch-section .breadcrumb {
  margin-bottom: 18px;
}

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

.player-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.movie-video,
.player-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  padding: 30px;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.72));
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.play-ring {
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #10b981;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.player-overlay strong {
  display: block;
  max-width: 720px;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.15;
}

.player-overlay small {
  display: block;
  max-width: 720px;
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.7;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 46px 0 82px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.detail-card,
.side-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-xl);
  background: #ffffff;
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.detail-card + .detail-card {
  margin-top: 22px;
}

.detail-tags {
  margin-bottom: 16px;
}

.detail-tags a {
  padding: 8px 12px;
  color: #047857;
  background: #ecfdf5;
}

.detail-tags .category-pill {
  color: #ffffff;
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

.detail-card h1 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 26px;
}

.detail-card p,
.side-card p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.86;
}

.detail-card .lead-text {
  margin-top: 20px;
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.75;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 92px;
}

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

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand .brand-mark {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
}

.footer-brand small {
  display: block;
  margin-top: 4px;
  color: #34d399;
}

.site-footer p {
  color: #d1d5db;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  color: #ffffff;
  font-size: 18px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.55);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.footer-bottom {
  padding: 18px 0;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

  .nav-search {
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr 260px;
  }

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

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

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

  .detail-side {
    position: static;
  }

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

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

  .nav-wrap {
    gap: 12px;
  }

  .brand-title {
    font-size: 19px;
  }

  .nav-search {
    display: none;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 58px 0 82px;
  }

  .hero-cover {
    width: min(270px, 78vw);
    margin: 0 auto;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

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

  .section-head,
  .filter-head {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .movie-grid-six,
  .category-grid,
  .category-grid.wide,
  .related-grid,
  .top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card-large {
    display: block;
    min-height: 0;
  }

  .featured-layout {
    gap: 18px;
  }

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

  .compact-cover {
    height: 106px;
  }

  .search-page-form {
    display: grid;
  }

  .catalog-filter {
    display: grid;
    width: 100%;
  }

  .catalog-filter input {
    width: 100%;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }

  .player-frame {
    border-radius: 16px;
  }

  .play-ring {
    width: 64px;
    height: 64px;
  }

  .player-overlay small {
    display: none;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid-six,
  .category-grid,
  .category-grid.wide,
  .related-grid,
  .top-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .page-actions {
    display: grid;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
