* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 58%, #f8fafc 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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: 60;
  background: linear-gradient(90deg, #0f766e 0%, #0891b2 100%);
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 118, 110, .28);
}

.top-nav {
  max-width: 1280px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand:hover {
  opacity: .86;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #0f766e;
  background: #f59e0b;
  box-shadow: 0 10px 26px rgba(245, 158, 11, .35);
}

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

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

.brand-text small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

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

.nav-links a {
  font-weight: 700;
  opacity: .9;
  transition: color .2s ease, opacity .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fbbf24;
  opacity: 1;
}

.nav-search {
  display: flex;
  align-items: center;
}

.nav-search input {
  width: 210px;
  padding: 9px 14px;
  border: 0;
  outline: 0;
  color: #ffffff;
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, .72);
}

.nav-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 0 999px 999px 0;
  background: #f59e0b;
  transition: background .2s ease;
}

.nav-search button:hover {
  background: #d97706;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  margin-left: auto;
  background: rgba(255, 255, 255, .14);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease, transform 5s ease;
}

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

.hero-content {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 24px 78px;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 720px;
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.hero-badges,
.detail-badges,
.hero-tags,
.detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.detail-badges span {
  padding: 7px 14px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(15, 118, 110, .88);
  backdrop-filter: blur(10px);
}

.hero-badges span:first-child,
.detail-badges span:first-child {
  background: #f59e0b;
}

.hero-meta {
  margin: 0 0 10px;
  color: #e5e7eb;
  font-size: 19px;
}

.hero-desc {
  max-width: 650px;
  margin: 0 0 18px;
  color: #d1d5db;
  font-size: 17px;
}

.hero-tags span,
.detail-tags span {
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

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

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

.primary-btn {
  color: #ffffff;
  background: #0f766e;
  box-shadow: 0 16px 32px rgba(15, 118, 110, .36);
}

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

.primary-btn:hover {
  background: #115e59;
}

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

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

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

.hero-dot.active {
  width: 36px;
  background: #f59e0b;
}

.content-section {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-head {
  position: relative;
  margin-bottom: 30px;
}

.section-head span,
.panel-head span,
.page-hero span {
  display: inline-block;
  margin-bottom: 8px;
  color: #f59e0b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
}

.section-head h2,
.panel-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-head p {
  max-width: 660px;
  margin: 8px 0 0;
  color: #64748b;
}

.section-link {
  position: absolute;
  right: 0;
  bottom: 5px;
  color: #0f766e;
  font-weight: 900;
}

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

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

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

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

.movie-card {
  min-width: 0;
}

.poster-link {
  display: block;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .10);
  transition: transform .25s ease, box-shadow .25s ease;
}

.poster-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, .18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

.poster-link:hover .poster-wrap img {
  transform: scale(1.08);
}

.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .08));
  transition: opacity .25s ease;
}

.poster-link:hover .card-glow {
  opacity: 1;
}

.play-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #ffffff;
  border-radius: 999px;
  background: #0f766e;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s ease, transform .25s ease;
}

.poster-link:hover .play-mark {
  opacity: 1;
  transform: scale(1);
}

.region-badge,
.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.region-badge {
  left: 12px;
  background: #0f766e;
}

.type-badge {
  right: 12px;
  background: #f59e0b;
  border-radius: 8px;
}

.rank-badge {
  left: 12px;
  top: 48px;
  background: #dc2626;
}

.year-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #ffffff;
  padding: 30px 12px 12px;
  font-size: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .92), transparent);
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 50px;
  margin-bottom: 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .2s ease;
}

.poster-link:hover .card-body strong {
  color: #0f766e;
}

.card-body em {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #64748b;
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-section {
  padding-top: 22px;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: 0 20px 44px rgba(14, 116, 144, .18);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #7c3aed, #0891b2);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #e11d48, #f59e0b);
}

.category-card img {
  position: absolute;
  right: -18px;
  bottom: -32px;
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  opacity: .36;
  transform: rotate(8deg);
}

.category-emoji {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 18px;
  font-size: 28px;
  background: rgba(255, 255, 255, .18);
}

.category-card strong {
  display: block;
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
  font-size: 26px;
}

.category-card em {
  display: block;
  position: relative;
  z-index: 2;
  max-width: 240px;
  color: rgba(255, 255, 255, .82);
  font-style: normal;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head a {
  display: inline-block;
  margin-top: 10px;
  color: #0f766e;
  font-weight: 900;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}

.rank-row span {
  color: #f59e0b;
  font-weight: 900;
}

.rank-row img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-row strong,
.rank-row em {
  grid-column: 3;
}

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

.rank-row em {
  margin-top: -8px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, .28), transparent 28%), linear-gradient(135deg, #0f766e 0%, #0f172a 100%);
}

.small-hero {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 24px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
}

.stacked-list {
  display: grid;
  gap: 34px;
}

.category-overview-card {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .10);
}

.category-overview-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.category-overview-head > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 30px;
  background: #ecfeff;
}

.category-overview-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.category-overview-head p {
  margin: 0;
  color: #64748b;
}

.category-overview-head a {
  color: #ffffff;
  background: #0f766e;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.filter-bar,
.search-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  min-height: 46px;
  border: 1px solid #e5e7eb;
  outline: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #111827;
  background: #ffffff;
}

.filter-bar input,
.search-panel input {
  flex: 1;
  min-width: 240px;
}

.search-panel button {
  min-height: 46px;
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 0 26px;
  background: #0f766e;
  cursor: pointer;
  font-weight: 900;
}

.empty-state {
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 18px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.detail-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.03);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, .72);
}

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

.breadcrumb em {
  font-style: normal;
  color: #ffffff;
}

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

.detail-poster {
  width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

.detail-info h1 {
  margin: 18px 0;
  max-width: 880px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.detail-line {
  max-width: 780px;
  margin: 0 0 14px;
  color: #e5e7eb;
  font-size: 20px;
}

.detail-meta {
  margin: 0 0 18px;
  color: #bae6fd;
  font-weight: 700;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  padding-top: 64px;
}

.video-player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .28);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(15, 118, 110, .24), rgba(0, 0, 0, .42));
  transition: opacity .24s ease, visibility .24s ease;
}

.player-cover span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 34px;
  background: #0f766e;
  box-shadow: 0 18px 48px rgba(15, 118, 110, .35);
}

.video-player-box.playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-player-box.error .player-cover span {
  width: auto;
  height: auto;
  padding: 14px 22px;
  font-size: 16px;
  border-radius: 999px;
}

.article-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding-top: 16px;
}

.detail-article {
  padding: 30px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article p {
  margin: 0;
  color: #475569;
  font-size: 16px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
  color: #94a3b8;
}

.footer-column h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li + li {
  margin-top: 8px;
}

.footer-column a:hover {
  color: #22d3ee;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding: 18px 24px;
  color: #64748b;
  text-align: center;
}

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

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

  .split-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 880px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 18px;
  }

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

  .nav-links,
  .nav-search {
    display: none;
    width: 100%;
  }

  .site-header.open .nav-links,
  .site-header.open .nav-search {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .10);
  }

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

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding-bottom: 72px;
  }

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

  .section-link {
    position: static;
    display: inline-block;
    margin-top: 12px;
  }

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

  .detail-poster {
    width: min(260px, 80vw);
  }

  .article-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-overview-head,
  .filter-bar,
  .search-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .filter-bar input,
  .search-panel input {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .content-section,
  .detail-inner,
  .footer-inner {
    width: min(100% - 28px, 1280px);
  }

  .movie-grid,
  .compact-grid,
  .highlight-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .brand-text small {
    display: none;
  }
}
