:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #ecfdf5;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --emerald: #10b981;
  --emerald-dark: #047857;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
}

.brand-name,
.footer-brand span:last-child {
  font-size: 21px;
  background: linear-gradient(135deg, var(--emerald-dark), var(--cyan-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

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

.nav-search {
  width: 286px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 5px 6px 5px 16px;
  background: #fff;
}

.nav-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

.nav-search button,
.mobile-search button,
.big-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  border-radius: 999px;
  font-weight: 800;
}

.nav-search button {
  width: 36px;
  height: 36px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #ecfdf5;
  color: var(--emerald-dark);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding: 14px 16px 18px;
  background: #fff;
}

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

.mobile-search {
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 8px;
}

.mobile-search button {
  padding: 8px 16px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 24%, rgba(34, 211, 238, 0.20), transparent 30%), linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  padding: 82px 0 98px;
  color: #fff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 20px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

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

.hero-tags {
  margin-top: 22px;
}

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

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

.primary-button {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.32);
}

.ghost-button {
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

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

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 185, 129, 0.86);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  font-size: 28px;
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: #fff;
}

.section-panel {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.search-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  gap: 30px;
  align-items: center;
  padding: 34px 0;
}

.search-strip h2,
.section-heading h2,
.gradient-panel h2,
.article-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
}

.search-strip p,
.gradient-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.big-search {
  background: #f1f5f9;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  padding: 8px;
}

.big-search input {
  min-height: 44px;
  padding-left: 16px;
}

.big-search button {
  min-height: 44px;
  padding: 0 26px;
}

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

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

.section-heading a,
.text-button {
  color: var(--emerald-dark);
  font-weight: 900;
}

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

.movie-card {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.poster-link img,
.compact-card img,
.rank-poster img,
.detail-card img,
.category-cover img,
.mini-poster-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img,
.compact-card img,
.rank-poster img {
  transition: transform 0.45s ease;
}

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

.quality-badge,
.year-badge {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.quality-badge {
  left: 10px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.year-badge {
  right: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.movie-info {
  padding: 14px;
}

.movie-info h2 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-info h2 a:hover,
.rank-body h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--emerald-dark);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  min-height: 38px;
  margin-top: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 800;
}

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

.channel-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
}

.channel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.45s ease;
}

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

.channel-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent);
}

.channel-card span {
  font-size: 21px;
  font-weight: 900;
}

.channel-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.gradient-panel {
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
}

.split-showcase {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 38px;
  align-items: center;
  padding: 60px 0;
}

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

.compact-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.compact-card img {
  aspect-ratio: 2 / 3;
}

.compact-card span,
.compact-card small {
  display: block;
  padding: 0 10px;
}

.compact-card span {
  padding-top: 10px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card small {
  padding-bottom: 10px;
  color: var(--muted);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-num {
  color: var(--emerald-dark);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #ecfdf5;
}

.rank-body h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.page-hero {
  color: #fff;
  background: radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.24), transparent 34%), linear-gradient(135deg, #064e3b, #0891b2);
}

.page-hero .container {
  padding: 72px 0;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #f8fafc;
}

.compact-filter {
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: end;
}

.empty-state {
  margin-top: 28px;
  padding: 34px;
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: #ecfdf5;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.mini-poster-row a {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: #ecfdf5;
}

.detail-top {
  background: radial-gradient(circle at 82% 0%, rgba(6, 182, 212, 0.22), transparent 30%), linear-gradient(135deg, #0f172a, #064e3b);
  color: #fff;
  padding: 28px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

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

.player-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.player-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
}

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

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.18), rgba(15, 23, 42, 0.52));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.detail-card img {
  aspect-ratio: 2 / 3;
  background: #ecfdf5;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  list-style: none;
}

.detail-meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 10px;
}

.detail-meta li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-meta span {
  color: var(--muted);
}

.detail-tags {
  padding: 0 18px 18px;
}

.detail-content {
  margin-top: -34px;
}

.article-card {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.article-card h2 {
  margin-top: 28px;
  font-size: 26px;
}

.article-card h2:first-child {
  margin-top: 0;
}

.article-card p {
  margin: 12px 0 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.related-block {
  padding-top: 38px;
}

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

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #fff, #f1f5f9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 38px;
  padding: 48px 0 28px;
}

.footer-grid p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 17px;
}

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

.footer-links a {
  color: #475569;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--emerald-dark);
}

.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid #e5e7eb;
  color: var(--muted);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

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

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

  .hero {
    min-height: auto;
  }

  .hero-content,
  .search-strip-inner,
  .split-showcase,
  .detail-layout,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 30px;
    padding: 58px 0 86px;
  }

  .hero-poster {
    width: min(260px, 74vw);
    justify-self: center;
  }

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

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

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

  .filter-bar,
  .compact-filter {
    grid-template-columns: 1fr;
  }

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

  .rank-item .text-button {
    grid-column: 2 / 4;
    justify-content: flex-start;
  }

  .detail-card {
    max-width: 320px;
  }
}

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

  .brand-name {
    font-size: 18px;
  }

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

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

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

  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-desc {
    display: none;
  }

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

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

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

  .page-hero .container {
    padding: 50px 0;
  }

  .player-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-card {
    padding: 22px;
  }

  .article-card p {
    font-size: 16px;
  }
}
