:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.24);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-900), var(--slate-800));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

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

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

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--slate-950);
  background: var(--amber-400);
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.14);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.1);
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.05em;
}

.brand-text small {
  margin-top: 4px;
  color: #99f6e4;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  font-weight: 600;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #99f6e4;
  opacity: 1;
}

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

.header-search input,
.mobile-search input {
  width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search input:focus,
.mobile-search input:focus {
  border-color: #5eead4;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--slate-950);
  background: var(--amber-400);
  cursor: pointer;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--slate-800);
}

.mobile-nav.open {
  display: grid;
  gap: 12px;
}

.mobile-search {
  align-items: stretch;
}

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

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1280px) / 2 + 24px));
  color: var(--white);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  width: min(680px, 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--amber-500);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
}

.hero-content h1,
.detail-intro h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p,
.detail-intro p {
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-tags span,
.genre-pills span,
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(20, 184, 166, 0.15);
  color: #99f6e4;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 14px;
}

.hero-meta span,
.card-meta span {
  position: relative;
}

.hero-meta span + span::before,
.card-meta span + span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

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

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

.primary-button {
  color: var(--white);
  background: var(--teal-600);
  box-shadow: 0 18px 36px rgba(13, 148, 136, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--teal-700);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.hero-controls > button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.hero-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  transform: translateY(-38px);
  position: relative;
  z-index: 2;
}

.quick-entry a {
  min-height: 108px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-entry a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.quick-entry strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.quick-entry span {
  color: var(--slate-600);
}

.content-section {
  margin-bottom: 68px;
}

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

.section-heading.simple {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.text-link {
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 10px 16px;
}

.text-link:hover {
  color: var(--white);
  background: var(--teal-700);
}

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

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

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

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

.movie-card,
.movie-row-card,
.category-tile,
.spotlight-card,
.detail-content,
.detail-side,
.filter-panel {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.movie-card {
  display: block;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame,
.row-poster,
.detail-cover,
.player-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-900));
}

.poster-frame {
  height: 210px;
}

.poster-short {
  height: 138px;
}

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

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

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: var(--teal-600);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-body.small {
  padding: 12px;
}

.movie-card h3,
.movie-row-card h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-compact h3 {
  font-size: 15px;
}

.movie-card p,
.movie-row-card p {
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card .card-meta,
.movie-row-card .card-meta {
  color: #64748b;
}

.tag-line {
  margin-top: 12px;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-row-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.row-poster {
  min-height: 188px;
}

.row-info {
  padding: 20px;
}

.pill.muted {
  margin-bottom: 10px;
  color: var(--teal-800);
  background: var(--teal-100);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--teal-600));
  font-weight: 900;
}

.rank-row img {
  width: 68px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-800);
}

.rank-main {
  min-width: 0;
}

.rank-main strong,
.rank-main em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main strong {
  margin-bottom: 4px;
  color: var(--slate-900);
}

.rank-main em {
  color: var(--slate-600);
  font-size: 13px;
  font-style: normal;
}

.rank-extra {
  color: var(--slate-600);
  font-size: 13px;
  white-space: nowrap;
}

.full-list .rank-row {
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
}

.full-list .rank-row img {
  width: 86px;
  height: 66px;
}

.spotlight-card {
  align-self: start;
  padding: 30px;
  color: var(--white);
  background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.42), transparent 34%), linear-gradient(145deg, var(--slate-900), var(--teal-900));
}

.spotlight-card span {
  color: #99f6e4;
  font-weight: 800;
}

.spotlight-card h2 {
  margin: 12px 0;
  font-size: 32px;
}

.spotlight-card p {
  color: #dbeafe;
  line-height: 1.8;
}

.page-hero {
  min-height: 270px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.38), transparent 30%), linear-gradient(115deg, var(--slate-950), var(--teal-900));
}

.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.page-hero span {
  color: #99f6e4;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-tile {
  overflow: hidden;
}

.category-tile > a {
  display: block;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--teal-800));
}

.category-tile span {
  color: #99f6e4;
  font-weight: 900;
}

.category-tile h2 {
  margin: 12px 0 0;
  font-size: 24px;
  line-height: 1.5;
}

.category-preview {
  display: grid;
  gap: 10px;
  padding: 22px 28px 28px;
}

.category-preview a {
  color: var(--slate-700);
  font-weight: 700;
}

.category-preview a:hover {
  color: var(--teal-700);
}

.filter-panel {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin: 36px 0 28px;
  padding: 20px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 800;
}

.filter-search {
  flex: 1;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--slate-900);
  background: var(--white);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.empty-state {
  margin: 0;
  color: var(--slate-600);
  font-weight: 700;
}

.listing-grid {
  padding-bottom: 60px;
}

.detail-hero {
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.detail-hero-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 56px 0;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

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

.breadcrumb a:hover {
  color: #99f6e4;
}

.player-section {
  padding: 54px 0;
  background: var(--slate-950);
}

.page-container.narrow {
  width: min(1080px, calc(100% - 32px));
}

.player-section h2 {
  margin: 0 0 22px;
  color: var(--white);
  font-size: 30px;
}

.player-box {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  z-index: 3;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--slate-950);
  background: var(--amber-400);
  font-size: 38px;
  box-shadow: 0 0 0 18px rgba(251, 191, 36, 0.18);
  transition: transform 0.2s ease;
}

.player-overlay:hover span {
  transform: scale(1.08);
}

.player-overlay.hidden {
  display: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 56px 0;
}

.detail-content,
.detail-side {
  padding: 30px;
}

.detail-content h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 26px;
}

.detail-content h2:not(:first-child) {
  margin-top: 34px;
}

.detail-content p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.95;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
}

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

.info-list dd {
  margin: 0;
  color: var(--slate-800);
}

.detail-side {
  align-self: start;
  display: grid;
  gap: 12px;
}

.side-link {
  display: block;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--teal-800);
  background: var(--teal-100);
  font-weight: 900;
}

.side-link:hover {
  color: var(--white);
  background: var(--teal-700);
}

.related-section {
  padding-bottom: 70px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 22px;
}

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

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.site-footer a:hover {
  color: #99f6e4;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
  color: #94a3b8;
}

[data-card].is-hidden {
  display: none;
}

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

  .header-inner {
    justify-content: space-between;
  }

  .mobile-toggle {
    display: block;
  }

  .quick-entry,
  .four-cols,
  .five-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-cols,
  .split-layout,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-slider {
    height: 620px;
  }

  .hero-slide {
    align-items: flex-end;
    padding-bottom: 116px;
  }

  .hero-controls {
    left: 20px;
    right: auto;
    bottom: 28px;
  }

  .quick-entry,
  .four-cols,
  .five-cols,
  .three-cols,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-row-card,
  .rank-row,
  .full-list .rank-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-row img,
  .rank-extra {
    display: none;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .detail-cover {
    max-width: 260px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
