
:root {
  --bg: #f6faf8;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --line: rgba(15, 23, 42, 0.08);
  --brand: #10b981;
  --brand-dark: #047857;
  --teal: #14b8a6;
  --gold: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --small-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

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

.brand-text strong,
.footer-brand strong {
  font-size: 22px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--brand-dark), var(--teal));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

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

.nav-link {
  padding: 10px 13px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--brand-dark);
  background: rgba(16, 185, 129, 0.10);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 270px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.header-search input,
.mobile-search input,
.search-box input,
.quick-search-panel input,
.list-toolbar input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.header-search input {
  padding: 12px 88px 12px 18px;
}

.header-search button,
.mobile-search button,
.search-box button,
.quick-search-panel button,
.list-toolbar button {
  border: 0;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  position: absolute;
  right: 5px;
  padding: 8px 15px;
  border-radius: 999px;
}

.header-search button:hover,
.mobile-search button:hover,
.search-box button:hover,
.quick-search-panel button:hover,
.list-toolbar button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.28);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #0f172a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

.mobile-search {
  display: flex;
  gap: 10px;
  padding: 16px;
}

.mobile-search input {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mobile-search button {
  padding: 0 18px;
  border-radius: 16px;
}

.mobile-nav {
  display: grid;
  gap: 6px;
  padding: 0 16px 18px;
}

.mobile-nav-link {
  padding: 13px 14px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.08)),
    radial-gradient(circle at 78% 22%, rgba(20, 184, 166, 0.28), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 54px;
  align-items: center;
  min-height: 650px;
  padding: 70px 0;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-kicker {
  padding: 8px 14px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(167, 243, 208, 0.25);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--brand-dark);
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.85;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.10);
}

.hero-tags span {
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.14);
}

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

.primary-button,
.ghost-button,
.section-action,
.line-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 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 14px 25px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
}

.ghost-button {
  padding: 13px 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

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

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--teal));
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

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

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  padding: 0 !important;
}

.hero-dot.active {
  width: 30px !important;
  background: var(--brand) !important;
}

.quick-search-panel {
  position: relative;
  z-index: 10;
  margin-top: -42px;
  margin-bottom: 56px;
}

.quick-search-panel form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search-panel label {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.quick-search-panel form > div {
  display: flex;
  gap: 12px;
}

.quick-search-panel input {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.quick-search-panel button {
  padding: 0 24px;
  border-radius: 18px;
}

.content-section,
.category-section,
.page-list {
  margin-bottom: 68px;
}

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

.section-heading h2,
.ranking-side h2,
.side-panel h2,
.detail-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-action {
  padding: 10px 16px;
  color: var(--brand-dark);
  background: rgba(16, 185, 129, 0.10);
}

.section-action:hover,
.line-button:hover {
  color: #ffffff;
  background: var(--brand);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: var(--small-shadow);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.poster-badge,
.rank-badge,
.poster-play {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  background: linear-gradient(135deg, var(--gold), #f97316);
}

.poster-play {
  left: 50%;
  bottom: 18px;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  padding: 16px;
}

.movie-card h2 {
  display: -webkit-box;
  min-height: 47px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card h2 a:hover,
.ranking-content h2 a:hover {
  color: var(--brand-dark);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.movie-meta {
  font-size: 13px;
  font-weight: 700;
}

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

.movie-card .tag-row {
  margin-top: 12px;
}

.movie-card.compact .movie-card-body {
  padding: 13px;
}

.movie-card.compact h2 {
  min-height: 42px;
  font-size: 16px;
}

.movie-card.compact .movie-desc {
  display: none;
}

.movie-card.featured {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card.featured .poster img {
  height: 100%;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 70px),
    #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  display: inline-flex;
  margin: 12px 0;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(16, 185, 129, 0.10);
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.list-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.40), transparent 30rem),
    linear-gradient(135deg, #064e3b, #0f766e 48%, #0f172a);
}

.list-hero h1 {
  max-width: 900px;
  margin: 0 0 15px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

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

.list-hero .eyebrow {
  color: #a7f3d0;
}

.list-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.list-stats span {
  padding: 9px 13px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.12);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  margin-bottom: 30px;
}

.list-toolbar form {
  display: flex;
  width: min(520px, 100%);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.list-toolbar input {
  min-height: 48px;
  padding: 0 14px;
}

.list-toolbar button {
  padding: 0 18px;
  border-radius: 15px;
}

.toolbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.toolbar-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-weight: 800;
  background: rgba(16, 185, 129, 0.10);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.pagination a,
.pagination strong,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 14px;
  font-weight: 900;
}

.pagination a {
  color: var(--brand-dark);
  background: rgba(16, 185, 129, 0.10);
}

.pagination strong {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  margin-top: 44px;
  margin-bottom: 72px;
}

.ranking-main,
.ranking-side section,
.side-panel,
.detail-section,
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.ranking-main {
  padding: 26px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 74px 58px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  border-color: rgba(16, 185, 129, 0.26);
}

.ranking-cover {
  overflow: hidden;
  border-radius: 15px;
}

.ranking-cover img {
  width: 74px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.ranking-index strong {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
}

.ranking-content h2 {
  margin: 0 0 7px;
  font-size: 18px;
}

.ranking-content p,
.ranking-content span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.line-button {
  padding: 10px 14px;
  color: var(--brand-dark);
  background: rgba(16, 185, 129, 0.10);
}

.ranking-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.ranking-side section {
  padding: 22px;
}

.ranking-side h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

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

.search-page {
  margin-top: 34px;
  margin-bottom: 68px;
}

.search-box {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--small-shadow);
}

.search-box input {
  min-height: 56px;
  padding: 0 16px;
}

.search-box button {
  min-width: 120px;
  border-radius: 18px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.filter-row select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: #ffffff;
}

.search-summary {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.90), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.20)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 45%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 38px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

.detail-intro {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.detail-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 0;
  border-radius: 999px;
  text-align: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--teal));
}

.detail-copy h1 {
  max-width: 900px;
  margin: 18px 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-copy p {
  max-width: 840px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ecfdf5;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 36px;
  margin-bottom: 72px;
}

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.player-card {
  padding: 14px;
  overflow: hidden;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.site-video {
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #020617;
  cursor: pointer;
}

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.78));
}

.play-circle {
  position: relative;
  z-index: 3;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.34);
}

.video-shell.is-playing .player-cover {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.86);
}

.player-message.is-visible {
  display: block;
}

.detail-section {
  padding: 28px;
}

.detail-section h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.detail-section p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.side-panel {
  padding: 22px;
}

.side-panel h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.14), transparent 28rem),
    #f8fafc;
}

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

.site-footer p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--brand-dark);
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

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

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

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

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

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0 92px;
  }

  .hero-poster {
    width: min(230px, 66vw);
    transform: none;
  }

  .hero-controls {
    right: 16px;
    bottom: 24px;
  }

  .quick-search-panel form > div,
  .list-toolbar,
  .search-box {
    flex-direction: column;
  }

  .quick-search-panel button,
  .list-toolbar button,
  .search-box button {
    min-height: 48px;
  }

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

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

  .movie-card.featured {
    display: block;
  }

  .ranking-item {
    grid-template-columns: 64px 42px 1fr;
  }

  .ranking-item .line-button {
    grid-column: 3;
    width: fit-content;
  }

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

  .detail-poster {
    width: min(240px, 70vw);
  }

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

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

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

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

  .default-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .side-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.compact,
  .movie-card.default {
    display: grid;
    grid-template-columns: 38% 1fr;
  }

  .movie-card.compact .poster img,
  .movie-card.default .poster img {
    height: 100%;
  }

  .movie-card.compact .movie-desc {
    display: -webkit-box;
  }

  .ranking-main,
  .detail-section,
  .side-panel {
    padding: 18px;
  }
}
