:root {
  --color-primary: #0f766e;
  --color-primary-dark: #115e59;
  --color-primary-soft: #ccfbf1;
  --color-cyan: #0891b2;
  --color-amber: #f59e0b;
  --color-dark: #111827;
  --color-text: #171717;
  --color-muted: #737373;
  --color-border: #e5e5e5;
  --color-panel: #ffffff;
  --color-bg: #f5f7f8;
  --shadow-card: 0 16px 50px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 22px 70px rgba(15, 23, 42, 0.16);
  --radius-card: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  min-width: 320px;
}

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

img {
  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: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.24);
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--color-primary);
  font-size: 21px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: #404040;
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

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

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

.header-search input,
.mobile-search input,
.inline-search input {
  width: 260px;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  padding: 11px 13px;
  outline: none;
  color: var(--color-text);
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.inline-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.header-search button,
.mobile-search button,
.inline-search button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  color: #ffffff;
  background: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.inline-search button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #f5f5f5;
  cursor: pointer;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #262626;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  padding: 16px 0 18px;
  display: grid;
  gap: 10px;
}

.mobile-search input {
  width: 100%;
}

.mobile-link {
  padding: 11px 13px;
  border-radius: 12px;
  color: #404040;
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--color-primary);
  background: #f5f5f5;
}

.main-page {
  min-height: 60vh;
}

.hero-carousel {
  position: relative;
  height: min(72vh, 760px);
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 22%, rgba(20, 184, 166, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.20) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 52%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  padding: 54px 0 70px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(15, 118, 110, 0.34);
  border: 1px solid rgba(153, 246, 228, 0.28);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0;
  max-width: 690px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-cloud span,
.detail-tags a,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ecfeff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 13px;
  padding: 0 19px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28);
}

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

.btn-primary:hover {
  box-shadow: 0 20px 42px rgba(15, 118, 110, 0.36);
}

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

.btn-soft {
  color: var(--color-primary);
  background: #ecfeff;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.38);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(2, 6, 23, 0.62);
  transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

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

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

.section {
  padding: 76px 0;
}

.section.tight {
  padding: 48px 0;
}

.section.white {
  background: #ffffff;
}

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

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

.section-head h2,
.block-title,
.page-hero h1,
.detail-title,
.watch-heading h1 {
  margin: 0;
  color: #111827;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-head h2,
.page-hero h1,
.detail-title {
  font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.page-hero p,
.watch-heading p {
  margin: 10px 0 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.link-more {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.feature-poster {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.feature-poster:hover img {
  transform: scale(1.05);
}

.feature-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.10));
}

.feature-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 30px;
}

.feature-caption h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.feature-caption p {
  margin: 0 0 22px;
  color: #e5e7eb;
  line-height: 1.8;
}

.info-card,
.content-card,
.category-card,
.player-card {
  border-radius: var(--radius-card);
  background: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.75);
  box-shadow: var(--shadow-card);
}

.info-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card h2,
.content-card h2,
.player-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 25px;
}

.info-card p,
.content-card p,
.player-card p {
  color: #525252;
  line-height: 1.9;
}

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

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

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.78);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: var(--shadow-hover);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #cffafe);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.42);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.9);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card-link:hover .poster-shade,
.movie-card-link:hover .poster-play {
  opacity: 1;
}

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

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
  flex: 1;
}

.movie-card-body strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.22s ease;
}

.movie-card-link:hover strong {
  color: var(--color-primary);
}

.movie-line {
  color: #737373;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.movie-meta em,
.rank-info small,
.compact-info small {
  font-style: normal;
}

.movie-meta em {
  padding: 5px 8px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #525252;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(20, 184, 166, 0.18), transparent 28%);
  pointer-events: none;
}

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

.category-card strong {
  display: block;
  margin-bottom: 12px;
  color: #111827;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #606060;
  line-height: 1.8;
}

.category-card span {
  display: inline-flex;
  margin-top: 20px;
  color: var(--color-primary);
  font-weight: 800;
}

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

.rank-row {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.78);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 70px 170px minmax(0, 1fr) 86px;
  gap: 18px;
  align-items: center;
  padding: 14px 18px 14px 10px;
}

.rank-number {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #ccfbf1;
}

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

.rank-info {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.rank-info strong {
  color: #111827;
  font-size: 18px;
}

.rank-info small {
  color: #737373;
}

.rank-info em {
  color: #525252;
  font-style: normal;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-cta {
  justify-self: end;
  padding: 9px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--color-primary);
  font-weight: 800;
}

.latest-list {
  display: grid;
  gap: 16px;
}

.latest-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(229, 229, 229, 0.78);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.latest-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #ccfbf1;
}

.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-info h3 {
  margin: 0 0 9px;
  font-size: 21px;
  color: #111827;
}

.latest-info p {
  margin: 0 0 16px;
  color: #626262;
  line-height: 1.7;
}

.page-hero,
.watch-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-cyan));
}

.page-hero::before,
.watch-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.20), transparent 28%),
    radial-gradient(circle at 78% 0%, rgba(245, 158, 11, 0.18), transparent 26%);
}

.page-hero .container,
.watch-hero .container {
  position: relative;
  padding: 70px 0;
}

.page-hero h1,
.page-hero p,
.watch-heading h1,
.watch-heading p {
  color: #ffffff;
}

.page-hero p,
.watch-heading p {
  max-width: 780px;
  color: #e0f2fe;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.inline-search {
  display: flex;
  gap: 10px;
}

.inline-search input {
  width: 100%;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid rgba(15, 118, 110, 0.20);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--color-primary);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: var(--radius-card);
  background: #ffffff;
  color: #525252;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.empty-state.show {
  display: block;
}

.detail-shell {
  padding: 38px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #d1fae5;
  font-size: 14px;
}

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

.watch-heading {
  max-width: 900px;
}

.watch-heading h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.player-wrap {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.28);
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 3;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
  filter: saturate(1.05);
}

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

.play-circle {
  position: absolute;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: 0 20px 46px rgba(15, 118, 110, 0.38);
  font-size: 30px;
  padding-left: 5px;
}

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

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin-top: 0;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--color-border);
}

.meta-grid span {
  padding: 8px 12px;
  border-radius: 11px;
  color: #525252;
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 700;
}

.detail-copy {
  color: #404040;
  font-size: 16px;
  line-height: 1.95;
}

.detail-copy strong {
  color: #111827;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-tags a,
.detail-tags span {
  color: var(--color-primary);
  background: #f0fdfa;
}

.sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 92px;
}

.sidebar-box {
  padding: 20px;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 229, 229, 0.78);
}

.sidebar-box h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 20px;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: #f5f5f5;
}

.compact-poster {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #ccfbf1;
}

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

.compact-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.compact-info strong {
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-info small {
  color: #737373;
}

.compact-info em {
  color: #525252;
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 38px;
  padding: 48px 0 34px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-grid p {
  max-width: 460px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: 17px;
}

.footer-grid a {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #5eead4;
}

.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

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

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

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

  .sidebar {
    position: static;
  }
}

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

  .hero-carousel {
    min-height: 560px;
    height: 76vh;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  .hero-control {
    display: none;
  }

  .feature-grid,
  .latest-item,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-link {
    grid-template-columns: 48px 112px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-cta {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .header-inner {
    height: 62px;
  }

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

  .brand-text small {
    display: none;
  }

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

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

  .hero-actions {
    flex-direction: column;
  }

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

  .section {
    padding: 54px 0;
  }

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

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

  .category-strip {
    grid-template-columns: 1fr;
  }

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

  .rank-number {
    font-size: 22px;
  }

  .rank-info em {
    display: none;
  }

  .page-hero .container,
  .watch-hero .container {
    padding: 52px 0;
  }

  .player-wrap {
    margin-top: -24px;
  }

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

  .content-card {
    padding: 20px;
  }

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