
:root {
  --primary: #1890ff;
  --primary-soft: rgba(24, 144, 255, 0.18);
  --secondary: #13c2c2;
  --dark-950: #0d0f12;
  --dark-900: #141618;
  --dark-850: #1b1f24;
  --dark-800: #24272c;
  --dark-700: #30343b;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #aab2c0;
  --soft: #d7dce5;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(24, 144, 255, 0.14), transparent 38rem),
    radial-gradient(circle at top right, rgba(19, 194, 194, 0.1), transparent 34rem),
    var(--dark-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(13, 15, 18, 0.88), rgba(13, 15, 18, 0.05));
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--line);
  background: rgba(20, 22, 24, 0.95);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 35px rgba(24, 144, 255, 0.35);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
}

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

.brand-copy strong,
.footer-logo strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

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

.nav-link,
.mobile-nav-link {
  border-radius: 999px;
  color: var(--soft);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fff;
  background: var(--primary-soft);
}

.header-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.mobile-search input,
.large-search input {
  width: 220px;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 11px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.large-search input::placeholder {
  color: #7f8794;
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  color: #fff;
  background: var(--primary);
  padding: 11px 16px;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(36, 39, 44, 0.98);
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

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

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 104px;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.16), rgba(19, 194, 194, 0.08)), var(--dark-800);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 15, 18, 0.96) 0%, rgba(13, 15, 18, 0.78) 42%, rgba(13, 15, 18, 0.25) 100%),
    linear-gradient(0deg, rgba(13, 15, 18, 0.98) 0%, transparent 45%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 7vw, 74px);
  bottom: clamp(46px, 8vw, 86px);
  z-index: 2;
  width: min(650px, calc(100% - 48px));
  animation: slideUp 0.8s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(24, 144, 255, 0.45);
  border-radius: 999px;
  color: #8dccff;
  background: rgba(24, 144, 255, 0.14);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-info .lead {
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
}

.hero-meta strong {
  color: #ffd666;
}

.hero-meta span,
.movie-meta span,
.movie-meta a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  font-size: 13px;
}

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

.hero-tags span,
.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cfd6e3;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 10px;
  font-size: 13px;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #40a9ff);
  padding: 13px 24px;
  box-shadow: 0 16px 35px rgba(24, 144, 255, 0.28);
}

.ghost-button {
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 22px;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 22, 24, 0.62);
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--primary);
}

.hero-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(36, 39, 44, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-side-title {
  color: #fff;
  font-size: 20px;
  font-weight: 850;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-mini-card.is-active,
.hero-mini-card:hover {
  border-color: rgba(24, 144, 255, 0.45);
  background: rgba(24, 144, 255, 0.12);
}

.hero-mini-card img {
  width: 82px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.28), rgba(19, 194, 194, 0.2));
}

.hero-mini-card strong,
.compact-info strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.hero-mini-card em,
.compact-info em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.search-band {
  width: min(1180px, calc(100% - 32px));
  margin: -40px auto 80px;
  position: relative;
  z-index: 8;
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(36, 39, 44, 0.94);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band strong {
  display: block;
  font-size: 24px;
  font-weight: 850;
}

.search-band span {
  color: var(--muted);
}

.large-search input {
  width: 100%;
  padding: 14px 18px;
}

.large-search button {
  padding: 14px 22px;
  white-space: nowrap;
}

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

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

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading > a,
.text-link {
  color: #fff;
  border: 1px solid rgba(24, 144, 255, 0.42);
  background: rgba(24, 144, 255, 0.12);
  padding: 10px 15px;
}

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

.category-tile {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--dark-800);
  padding: 22px;
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 144, 255, 0.45);
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(13, 15, 18, 0.85), rgba(24, 144, 255, 0.2));
}

.category-tile span,
.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile span {
  font-size: 22px;
  font-weight: 850;
}

.category-tile strong {
  margin: 12px 0;
  color: #8dccff;
  font-size: 36px;
}

.category-tile em {
  color: var(--soft);
  font-style: normal;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(36, 39, 44, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.2), rgba(19, 194, 194, 0.14)), #1a1d22;
  aspect-ratio: 2 / 3;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 22, 24, 0.72);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(24, 144, 255, 0.86);
  box-shadow: 0 15px 35px rgba(24, 144, 255, 0.4);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-weight: 850;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.score {
  flex: 0 0 auto;
  color: #ffd666;
  font-weight: 850;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  gap: 6px;
  margin-top: 0;
}

.movie-meta span,
.movie-meta a {
  padding: 3px 7px;
  font-size: 12px;
}

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

.tag-row span {
  padding: 3px 8px;
  font-size: 12px;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(36, 39, 44, 0.82);
  padding: 22px;
  box-shadow: var(--shadow);
}

.ranking-panel h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.ranking-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

.ranking-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.rank-num {
  color: #8dccff;
  font-weight: 900;
  font-size: 18px;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(13, 15, 18, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0 30px;
}

.footer-about p,
.footer-links a,
.footer-bottom {
  color: var(--muted);
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.subpage {
  padding-top: 96px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(24, 144, 255, 0.18), rgba(19, 194, 194, 0.08)),
    var(--dark-800);
  box-shadow: var(--shadow);
}

.compact-hero {
  padding: 48px;
}

.compact-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(36, 39, 44, 0.82);
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-overview-image {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.2), rgba(19, 194, 194, 0.14));
  aspect-ratio: 4 / 3;
}

.category-overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 8px 0;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.category-overview-card strong {
  display: block;
  margin-bottom: 14px;
  color: #8dccff;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 190px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(36, 39, 44, 0.82);
}

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

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(13, 15, 18, 0.7);
  padding: 11px 12px;
}

.filter-bar button {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  padding: 12px 16px;
  font-weight: 800;
}

.result-count {
  margin: 0 0 18px;
  color: var(--muted);
}

.result-count span {
  color: #fff;
  font-weight: 850;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 76px 52px minmax(0, 1fr) 130px;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(36, 39, 44, 0.82);
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.2), rgba(19, 194, 194, 0.14));
  aspect-ratio: 2 / 3;
}

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

.rank-number {
  color: #8dccff;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-detail h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-detail p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-score {
  text-align: right;
}

.rank-score strong {
  display: block;
  color: #ffd666;
  font-size: 28px;
}

.rank-score span {
  color: var(--muted);
  font-size: 12px;
}

.center-search {
  max-width: 680px;
  margin-top: 28px;
}

.detail-page {
  padding-top: 76px;
}

.detail-hero {
  width: 100%;
  min-height: 560px;
  margin: 0 0 36px;
  border: 0;
  border-radius: 0;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 50px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  max-width: 820px;
}

.detail-info .lead {
  max-width: 820px;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: -84px auto 46px;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(24, 144, 255, 0.16), rgba(0, 0, 0, 0.42));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 45px rgba(24, 144, 255, 0.36);
  font-size: 32px;
  padding-left: 5px;
}

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

.player-error {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: none;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 14px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.72);
  padding: 12px 14px;
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.story-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(36, 39, 44, 0.82);
  padding: 26px;
}

.story-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-card p {
  margin: 0 0 26px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.9;
}

.info-card dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  color: #fff;
}

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

.compact-movie-card .movie-card-body p,
.compact-movie-card .tag-row {
  display: none;
}

.compact-movie-card .movie-title {
  -webkit-line-clamp: 1;
}

.compact-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}

.compact-cover {
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.2), rgba(19, 194, 194, 0.14));
  aspect-ratio: 2 / 3;
}

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

.compact-score {
  color: #ffd666;
  font-weight: 850;
}

.is-hidden-by-filter {
  display: none !important;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .hero-side-title {
    grid-column: 1 / -1;
  }

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

  .two-column-section,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .site-header-inner {
    height: 68px;
  }

  .desktop-nav {
    display: none;
  }

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

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

  .brand-copy em {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 86px;
  }

  .hero-stage {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(13, 15, 18, 0.98) 0%, rgba(13, 15, 18, 0.72) 55%, rgba(13, 15, 18, 0.28) 100%);
  }

  .hero-content {
    left: 22px;
    bottom: 68px;
    width: calc(100% - 44px);
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero p,
  .page-hero p,
  .detail-info .lead {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .search-band {
    margin: 24px auto 58px;
  }

  .search-band-inner,
  .filter-bar,
  .footer-inner,
  .detail-layout,
  .rank-row {
    grid-template-columns: 1fr;
  }

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

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

  .compact-hero {
    padding: 34px 22px;
  }

  .rank-score,
  .rank-number {
    text-align: left;
  }

  .detail-hero-inner {
    padding-top: 54px;
  }

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

  .player-section {
    margin-top: -40px;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .page-section,
  .hero,
  .page-hero,
  .player-section,
  .detail-hero-inner,
  .footer-inner,
  .footer-bottom,
  .search-band {
    width: min(100% - 22px, 1180px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-stage {
    min-height: 590px;
  }

  .hero-actions,
  .hero-meta {
    gap: 8px;
  }

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

  .category-grid,
  .movie-grid,
  .large-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 150px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > a {
    margin-top: 16px;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

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

  .compact-movie-card,
  .related-grid .movie-card {
    display: block;
  }

  .player-overlay span {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}
