:root {
  --sky: #0ea5e9;
  --sky-dark: #0369a1;
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(2, 132, 199, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, rgba(240, 249, 255, 0.74) 38%, rgba(255, 251, 235, 0.64) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.74);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.32);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--sky-dark), var(--amber-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: #475569;
  font-size: 15px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--sky-dark);
  background: rgba(14, 165, 233, 0.10);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px;
  border: 1px solid rgba(14, 165, 233, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.header-search input,
.mobile-search input,
.big-search input,
.local-filter {
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.header-search input {
  width: 230px;
  padding: 8px 12px;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 750;
  background: linear-gradient(135deg, var(--sky), var(--amber));
}

.header-search button {
  padding: 8px 16px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.10);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--sky-dark);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.mobile-inner {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: #ffffff;
}

.mobile-search input {
  padding: 10px 12px;
}

.mobile-search button {
  padding: 10px 16px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.28), transparent 35%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  max-width: 690px;
  color: #ffffff;
  animation: fadeUp 800ms ease both;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  margin-bottom: 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.88), rgba(245, 158, 11, 0.88));
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.28);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  text-shadow: 0 22px 46px rgba(0, 0, 0, 0.40);
}

.hero-copy p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.hero-tags a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.hero-tags span,
.hero-tags a {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.30);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.ghost-btn.light {
  color: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(14, 165, 233, 0.36);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.content-section {
  padding: 68px 0;
}

.soft-section {
  padding: 68px 0;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.70), rgba(254, 243, 199, 0.70));
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 30px;
}

.section-heading > span {
  width: 5px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sky), var(--amber));
}

.section-heading h2 {
  margin: -4px 0 6px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.90);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(14, 165, 233, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(245, 158, 11, 0.18));
}

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

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

.poster-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(8px);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--amber));
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h2,
.wide-card h2,
.ranking-info h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.wide-card h2 a:hover,
.ranking-info h2 a:hover {
  color: var(--sky-dark);
}

.movie-card p,
.wide-card p,
.ranking-info p,
.category-card p,
.topic-card p {
  color: var(--muted);
  line-height: 1.7;
}

.movie-card p {
  min-height: 58px;
  margin: 10px 0 14px;
  font-size: 14px;
}

.tag-row span {
  padding: 6px 10px;
  color: #475569;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(254, 243, 199, 0.95));
}

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

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

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

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

.wide-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.wide-card img {
  width: 118px;
  height: 158px;
  object-fit: cover;
  border-radius: 16px;
}

.wide-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--sky-dark);
  font-size: 13px;
  font-weight: 800;
}

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

.category-card,
.topic-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 24px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.86));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: block;
  padding: 112px 18px 0;
  font-size: 22px;
  font-weight: 850;
}

.category-card p {
  margin: 10px 18px 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding: 68px 0;
}

.panel-card,
.rank-panel,
.text-panel,
.info-panel,
.player-card {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.panel-card {
  padding: 28px;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.rank-title h2 {
  margin: 0;
  font-size: 24px;
}

.rank-title a {
  color: var(--sky-dark);
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.80), rgba(255, 251, 235, 0.84));
}

.rank-row strong {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--amber));
}

.rank-row span {
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.inner-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: #ffffff;
  background: linear-gradient(135deg, #0369a1, #f59e0b);
}

.inner-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 20px 20px, #ffffff 2px, transparent 0);
  background-size: 40px 40px;
}

.inner-hero-content {
  position: relative;
  z-index: 1;
  padding: 82px 0 72px;
}

.inner-hero-content span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
}

.inner-hero-content h1 {
  max-width: 780px;
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
}

.inner-hero-content p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

.topic-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  min-height: 0;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.topic-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.topic-thumbs img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 16px;
}

.topic-card h2 {
  margin: 10px 0 8px;
  font-size: 24px;
}

.topic-card p {
  margin: 0 0 18px;
}

.topic-card span {
  display: inline-flex;
  color: var(--sky-dark);
  font-weight: 850;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #475569;
  font-weight: 800;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.filter-pill.active,
.filter-pill:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--amber));
}

.local-filter {
  width: min(310px, 100%);
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 20px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.90);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.ranking-poster {
  position: relative;
  display: block;
}

.ranking-poster img {
  width: 124px;
  height: 170px;
  object-fit: cover;
  border-radius: 18px;
}

.ranking-poster strong {
  position: absolute;
  top: -8px;
  left: -8px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.20);
}

.ranking-info span {
  display: block;
  margin-bottom: 8px;
  color: var(--sky-dark);
  font-weight: 800;
}

.ranking-info h2 {
  font-size: 22px;
}

.ranking-info p {
  margin: 10px 0 14px;
}

.search-page {
  min-height: 460px;
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  margin-bottom: 26px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.big-search input {
  padding: 14px 16px;
  font-size: 18px;
}

.big-search button {
  padding: 0 28px;
}

.search-summary {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 750;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  opacity: 0.42;
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.70), rgba(245, 158, 11, 0.18));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 34px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster img {
  width: 270px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

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

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

.detail-tags {
  margin-top: 22px;
}

.detail-main {
  padding-top: 44px;
}

.player-card {
  overflow: hidden;
  margin-bottom: 28px;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.player-head span {
  color: var(--sky-dark);
  font-size: 13px;
  font-weight: 850;
}

.player-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.player-head em {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky), var(--amber));
}

.cinema-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.cinema-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
}

.cinema-player.playing .player-cover {
  display: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 20px 44px rgba(14, 165, 233, 0.32);
}

.player-cover strong {
  font-size: 20px;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  display: none;
  max-width: calc(100% - 36px);
  padding: 10px 12px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.78);
}

.player-message.show {
  display: block;
}

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

.text-panel,
.info-panel {
  padding: 28px;
}

.text-panel h2,
.info-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.text-panel p {
  margin: 0 0 26px;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.info-panel dt {
  color: var(--muted);
  font-weight: 750;
}

.info-panel dd {
  margin: 0;
  color: var(--ink);
}

.info-panel a {
  color: var(--sky-dark);
  font-weight: 800;
}

.next-prev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.next-prev a {
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--sky-dark);
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(224, 242, 254, 0.78);
}

.site-footer {
  margin-top: 36px;
  padding-top: 48px;
  color: #475569;
  background: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(226, 232, 240, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
}

.footer-brand p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

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

.footer-col a:hover {
  color: var(--sky-dark);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.88);
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .rank-panel {
    position: static;
  }
}

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

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

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

  .hero {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .wide-grid,
  .topic-grid,
  .footer-grid,
  .detail-layout,
  .next-prev {
    grid-template-columns: 1fr;
  }

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

  .detail-poster img {
    width: 220px;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

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

  .hero {
    height: 540px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

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

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

  .wide-card,
  .ranking-card {
    grid-template-columns: 94px 1fr;
    gap: 12px;
  }

  .wide-card img,
  .ranking-poster img {
    width: 94px;
    height: 130px;
  }

  .category-card {
    min-height: 190px;
  }

  .category-card span {
    padding-top: 96px;
  }

  .content-section,
  .soft-section,
  .split-section {
    padding: 42px 0;
  }

  .detail-hero-inner {
    padding-bottom: 42px;
  }

  .player-head,
  .text-panel,
  .info-panel,
  .panel-card,
  .rank-panel {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}
