:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --primary: #0f766e;
  --primary-bright: #14b8a6;
  --accent: #2563eb;
  --dark: #020617;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.10), transparent 34rem), var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.96), rgba(8, 145, 178, 0.96), rgba(37, 99, 235, 0.96));
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.20);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1440px;
  height: 76px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  font-weight: 900;
  font-size: 1.25rem;
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-radius: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 0.55rem 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.category-shortcut {
  display: inline-flex;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.16);
}

.header-search input {
  width: 220px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0.55rem 0.65rem;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.70);
}

.header-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  color: var(--primary);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.55rem 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 1rem 1rem;
}

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

.mobile-nav-link {
  padding: 0.85rem 1rem;
  font-weight: 700;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  color: #fff;
  background: #020617;
}

.hero-stage {
  position: relative;
  min-height: 720px;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.18)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 42%);
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 3rem;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 7rem 0 11rem;
}

.hero-kicker,
.section-heading span,
.panel-heading span,
.page-hero span,
.category-block-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(153, 246, 228, 0.22);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 1.1rem 0 1rem;
  font-size: clamp(2.6rem, 5.6vw, 6.2rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-tags,
.detail-tags,
.card-tags,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags {
  margin: 1.6rem 0 2rem;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.42rem 0.75rem;
}

.hero-actions,
.category-block-head,
.section-heading,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.primary-button,
.ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  box-shadow: 0 16px 32px rgba(20, 184, 166, 0.24);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.outline-button {
  color: var(--primary);
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.24);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 2rem;
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.46);
}

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

.hero-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  font-size: 1.6rem;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(1180px, calc(100% - 3rem));
  transform: translateX(-50%);
}

.hero-dot {
  overflow: hidden;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.5rem;
  color: #fff;
  text-align: left;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-dot.is-active,
.hero-dot:hover {
  background: rgba(20, 184, 166, 0.46);
  border-color: rgba(153, 246, 228, 0.55);
}

.hero-dot img {
  width: 58px;
  height: 42px;
  object-fit: cover;
  border-radius: 0.8rem;
}

.hero-dot span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 800;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 7.7rem;
  z-index: 5;
  display: flex;
  width: min(640px, calc(100% - 3rem));
  padding: 0.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search input,
.search-page-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.82rem 1rem;
  color: #fff;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.section-wrap {
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.section-heading,
.panel-heading {
  margin-bottom: 1.45rem;
}

.section-heading h2,
.panel-heading h2,
.article-panel h2,
.category-block-head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.1;
  font-weight: 940;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.poster-box {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #0f172a, #134e4a);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.76));
}

.poster-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

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

.poster-duration {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  color: #fff;
  background: rgba(2, 6, 23, 0.74);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.card-body {
  display: block;
  padding: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
}

.card-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.8em;
  margin: 0.55rem 0 0.4rem;
  font-size: 1.02rem;
  line-height: 1.38;
  font-weight: 900;
}

.card-desc {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.9em;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.48;
}

.card-tags {
  margin-top: 0.75rem;
}

.card-tags span {
  color: #334155;
  background: #f1f5f9;
  padding: 0.28rem 0.5rem;
}

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

.rank-panel,
.article-panel,
.category-block,
.ranking-table {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  position: sticky;
  top: 98px;
  padding: 1.25rem;
}

.rank-list {
  display: grid;
  gap: 0.55rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #f8fafc;
}

.rank-item:hover {
  background: #ecfeff;
}

.rank-item span,
.row-num,
.ranking-number {
  display: grid;
  place-items: center;
  font-weight: 950;
}

.rank-item span {
  width: 2rem;
  height: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  border-radius: 0.75rem;
}

.rank-item strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item small {
  color: var(--muted);
}

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

.category-tile {
  display: block;
  min-height: 170px;
  padding: 1.4rem;
  color: #fff;
  text-decoration: none;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.20);
  transition: transform 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile span {
  display: block;
  font-size: 1.35rem;
  font-weight: 950;
}

.category-tile p {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(45, 212, 191, 0.40), transparent 26rem),
    linear-gradient(120deg, #042f2e, #0f172a 58%, #1d4ed8);
}

.page-hero > div {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.page-hero span {
  color: #99f6e4;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.20);
}

.page-hero h1 {
  margin: 1rem 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  line-height: 1.8;
}

.category-overview {
  display: grid;
  gap: 1.4rem;
}

.category-block {
  padding: 1.45rem;
}

.category-block-head p {
  max-width: 760px;
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.compact-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  padding: 0.65rem;
  border-radius: 1rem;
  background: #f8fafc;
}

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

.compact-card img {
  width: 76px;
  height: 108px;
  object-fit: cover;
  border-radius: 0.8rem;
}

.compact-card strong,
.compact-card small {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.compact-card strong {
  -webkit-line-clamp: 2;
  font-weight: 900;
}

.compact-card small {
  -webkit-line-clamp: 2;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.55;
}

.filter-bar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-bar input {
  width: 100%;
  border: 1px solid var(--soft);
  border-radius: 1rem;
  outline: 0;
  padding: 0.85rem 1rem;
}

.filter-chips button {
  border: 0;
  color: #334155;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #fff;
  background: var(--primary);
}

.ranking-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.ranking-feature {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  color: #fff;
  text-decoration: none;
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.ranking-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
  transition: transform 0.45s ease;
}

.ranking-feature:hover img {
  transform: scale(1.07);
}

.ranking-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
}

.ranking-feature strong,
.ranking-feature small {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
}

.ranking-feature strong {
  bottom: 2.5rem;
  font-size: 1.4rem;
  font-weight: 950;
}

.ranking-feature small {
  bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
}

.ranking-table {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 3rem 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eef2f7;
}

.ranking-row:hover {
  background: #f0fdfa;
}

.ranking-row img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 0.8rem;
}

.row-num {
  color: var(--primary);
  font-size: 1.15rem;
}

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

.row-main strong {
  font-weight: 900;
}

.row-main small {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 0.3rem;
  color: var(--muted);
  line-height: 1.55;
}

.row-meta {
  color: var(--primary);
  font-weight: 850;
}

.search-page-form {
  display: flex;
  width: min(620px, 100%);
  margin-top: 1.5rem;
  padding: 0.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(16px) brightness(0.42);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.56)),
    linear-gradient(0deg, #020617, transparent 42%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #99f6e4;
  text-decoration: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.2rem;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-category {
  display: inline-flex;
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.20);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-weight: 850;
}

.detail-info h1 {
  margin: 1rem 0;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.detail-meta span,
.detail-tags span {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-weight: 750;
}

.detail-tags {
  margin-bottom: 1.6rem;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1.4rem;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.6rem;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 0.85rem;
  color: #fff;
  border: 0;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

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

.player-cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.32));
}

.player-cover-button,
.player-cover strong {
  position: relative;
  z-index: 2;
}

.player-cover-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
}

.player-cover strong {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 950;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.36);
}

.article-panel {
  padding: 1.5rem;
}

.article-panel h2 {
  font-size: 1.5rem;
}

.article-panel p {
  color: #334155;
  line-height: 1.9;
}

.site-footer {
  margin-top: 3rem;
  color: #cbd5e1;
  background: #020617;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.35rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

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

.copyright {
  margin: 0;
  color: #64748b;
}

@media (max-width: 1180px) {
  .category-shortcut {
    display: none;
  }

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

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .header-inner {
    height: 68px;
    padding: 0 1rem;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-section,
  .hero-stage {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 5rem;
  }

  .hero-poster {
    width: min(260px, 70vw);
  }

  .hero-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 1rem;
  }

  .hero-search {
    bottom: 13rem;
  }

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

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

  .detail-poster {
    width: min(260px, 80vw);
  }

  .ranking-row {
    grid-template-columns: 2.4rem 56px 1fr;
  }

  .ranking-row img {
    width: 56px;
    height: 78px;
  }

  .row-meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

  .section-wrap,
  .footer-inner,
  .detail-inner,
  .page-hero > div,
  .hero-content,
  .hero-controls {
    width: min(100% - 1.5rem, 1440px);
  }

  .hero-section,
  .hero-stage {
    min-height: 820px;
  }

  .hero-copy h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-actions,
  .section-heading,
  .category-block-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-search,
  .search-page-form {
    flex-direction: column;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .compact-grid,
  .ranking-feature-grid {
    grid-template-columns: 1fr;
  }

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

  .card-body {
    padding: 0.85rem;
  }
}
