:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --amber-400: #fbbf24;
  --rose-500: #f43f5e;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-deep: 0 24px 60px rgba(2, 6, 23, 0.32);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--gray-50), #ffffff 42%, var(--gray-100));
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-900) 52%, #0b3b35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.24);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.34);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--emerald-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.desktop-nav a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.desktop-nav a.is-active {
  color: var(--emerald-400);
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: 62px;
  left: -18px;
  display: grid;
  min-width: 190px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-deep);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 9px 10px;
  border-radius: 10px;
}

.nav-dropdown-menu a:hover {
  background: rgba(16, 185, 129, 0.12);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(300px, 24vw);
}

.nav-search input {
  width: 100%;
  height: 38px;
  padding: 0 44px 0 16px;
  color: var(--white);
  background: rgba(51, 65, 85, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus {
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}

.nav-search button {
  position: absolute;
  right: 4px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--slate-950);
  cursor: pointer;
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  background: rgba(51, 65, 85, 0.8);
}

.mobile-panel {
  display: none;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

.mobile-panel .mobile-links {
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 10px;
}

.mobile-panel a:hover {
  background: rgba(51, 65, 85, 0.72);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.28), transparent 32%),
              linear-gradient(120deg, var(--slate-950), #103f3a 55%, var(--slate-950));
}

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

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

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.36) 100%),
              linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 54px;
  min-height: 640px;
  padding: 92px 0 126px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  color: var(--emerald-100);
  background: rgba(16, 185, 129, 0.14);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 700;
}

.hero-site-title {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-movie-title {
  margin: 0 0 16px;
  color: var(--emerald-100);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 18px;
  line-height: 1.85;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.meta-pill {
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.tag-pill {
  color: var(--emerald-700);
  background: var(--emerald-100);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.25);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.btn-dark {
  color: var(--white);
  background: var(--slate-900);
}

.hero-poster-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  min-height: 500px;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(34, 211, 238, 0.16));
}

.hero-poster-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.hero-poster-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.hero-strip {
  position: absolute;
  z-index: 5;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  left: max(16px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-thumb {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: var(--white);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.7);
}

.hero-thumb img {
  width: 58px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--slate-800);
}

.hero-thumb strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.hero-thumb span {
  color: rgba(226, 232, 240, 0.78);
  font-size: 12px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--emerald-400);
}

.section {
  padding: 58px 0;
}

.section-tight {
  padding: 34px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--emerald-600);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.section-title {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 22px;
}

.card-grid.wide-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--slate-900), #064e3b);
}

.poster-frame.wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster-frame.poster-fallback::after,
img.image-error + .fallback-title::after {
  content: "实时影视网";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: var(--slate-950);
  background: rgba(52, 211, 153, 0.95);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: all 0.24s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
}

.card-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.8);
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.card-title {
  margin: 0;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.38;
  font-weight: 900;
}

.movie-card:hover .card-title {
  color: var(--emerald-600);
}

.card-desc {
  margin: 0;
  min-height: 42px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.6;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--gray-500);
  font-size: 12px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.channel-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  border-radius: var(--radius-xl);
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(135deg, var(--slate-900), #065f46);
  box-shadow: var(--shadow-soft);
}

.channel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.32), transparent 36%);
}

.channel-card > * {
  position: relative;
  z-index: 2;
}

.channel-card:hover {
  transform: translateY(-4px);
}

.channel-count {
  display: inline-flex;
  margin-bottom: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.channel-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.channel-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.75;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: var(--white);
  background: linear-gradient(120deg, var(--slate-950), #064e3b 58%, var(--slate-950));
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.24);
  filter: blur(10px);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 12px;
  margin: 0 0 28px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.result-count {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 120px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

.rank-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--emerald-400));
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-800);
}

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.rank-copy p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.rank-heat {
  min-width: 92px;
  color: var(--emerald-600);
  font-weight: 900;
  text-align: right;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--emerald-400);
}

.detail-hero {
  padding: 52px 0 62px;
  color: var(--white);
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.2), transparent 32%),
              linear-gradient(120deg, var(--slate-950), #063f39 64%, var(--slate-950));
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: var(--slate-800);
  box-shadow: var(--shadow-deep);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-summary {
  max-width: 820px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 18px;
  line-height: 1.85;
}

.player-panel {
  overflow: hidden;
  border-radius: 24px;
  background: var(--slate-950);
  box-shadow: var(--shadow-deep);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76));
}

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

.player-play-button {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--slate-950);
  cursor: pointer;
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.34);
  font-size: 34px;
  transition: transform 0.2s ease;
}

.player-play-button:hover {
  transform: scale(1.08);
}

.player-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  color: rgba(226, 232, 240, 0.9);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.source-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  background: rgba(30, 41, 59, 0.88);
}

.source-button.is-active,
.source-button:hover {
  border-color: var(--emerald-400);
  color: var(--slate-950);
  background: var(--emerald-400);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.content-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.content-card + .content-card {
  margin-top: 18px;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-weight: 900;
}

.content-card h2 {
  font-size: 26px;
}

.content-card h3 {
  font-size: 20px;
}

.content-card p {
  color: var(--gray-700);
  line-height: 1.95;
}

.info-list {
  display: grid;
  gap: 11px;
}

.info-line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.info-line strong {
  color: var(--gray-900);
}

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

.related-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.related-mini img {
  width: 72px;
  height: 94px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--slate-800);
}

.related-mini strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.4;
}

.related-mini span {
  color: var(--gray-500);
  font-size: 12px;
}

.sitemap-links {
  columns: 4 220px;
  column-gap: 28px;
}

.sitemap-links a {
  display: block;
  break-inside: avoid;
  padding: 8px 0;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}

.sitemap-links a:hover {
  color: var(--emerald-600);
}

.site-footer {
  margin-top: 42px;
  padding: 48px 0 24px;
  color: rgba(226, 232, 240, 0.84);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 34px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-grid p {
  line-height: 1.8;
}

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

.footer-links a {
  color: rgba(226, 232, 240, 0.78);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 13px;
}

.empty-state {
  padding: 52px 16px;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-poster-card {
    display: none;
  }

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

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

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

  .hero {
    min-height: 760px;
  }

  .hero-inner {
    min-height: 550px;
    padding: 72px 0 220px;
  }

  .hero-desc,
  .page-hero p,
  .detail-summary {
    font-size: 16px;
  }

  .hero-strip {
    bottom: 42px;
    grid-template-columns: 1fr;
  }

  .hero-thumb:nth-child(n + 3) {
    display: none;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .filter-panel,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 48px 86px 1fr;
  }

  .rank-item img {
    width: 86px;
    height: 58px;
  }

  .rank-heat {
    grid-column: 3;
    text-align: left;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .card-grid,
  .card-grid.wide-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }
}
