:root {
  --bg: #f7faf9;
  --bg-soft: #eef8f5;
  --panel: rgba(255, 255, 255, 0.92);
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --brand: #059669;
  --brand-dark: #0f766e;
  --brand-soft: rgba(16, 185, 129, 0.12);
  --dark: #020617;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 32rem), var(--bg);
  min-width: 320px;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.06) rotate(-2deg);
}

.brand-name {
  font-size: 22px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #059669, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: #f1f5f9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

.mobile-panel {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 22px 90px;
  color: #fff;
}

.hero-kicker,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker span,
.detail-meta span,
.detail-meta a,
.card-meta span,
.card-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.hero-kicker span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

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

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

.hero-tags {
  margin: 24px 0 30px;
}

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

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
  color: #475569;
  background: #f1f5f9;
}

.hero-actions,
.footer-links,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.text-button,
.row-action,
.section-link,
.search-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.search-bar button {
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.33);
}

.primary-button:hover,
.search-bar button:hover,
.row-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(16, 185, 129, 0.4);
}

.ghost-button {
  padding: 13px 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 32px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 32px;
  background: #10b981;
}

.panel-wrap,
.content-section,
.page-main,
.detail-main {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.quick-search {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  padding-top: 0;
  padding-bottom: 28px;
}

.search-bar,
.search-filter-panel,
.inline-filter {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-bar input,
.search-filter-panel input,
.search-filter-panel select,
.inline-filter input,
.inline-filter select {
  min-width: 0;
  border: 0;
  border-radius: 18px;
  color: var(--text);
  background: #f8fafc;
  outline: none;
}

.search-bar input {
  flex: 1;
  padding: 13px 16px;
}

.quick-links {
  margin-top: 14px;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #0f766e;
  background: #ecfdf5;
  font-weight: 800;
}

.content-section {
  padding-top: 42px;
  padding-bottom: 48px;
}

.no-top {
  padding-top: 0;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.ranking-head h2,
.detail-info h1,
.detail-copy h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.section-heading h2,
.ranking-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading span,
.page-hero p,
.category-overview-card p,
.detail-copy p,
.movie-card-body p,
.ranking-row p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.section-link,
.text-button {
  color: var(--brand-dark);
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

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

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(2, 6, 23, 0.88));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-card strong {
  bottom: 58px;
  font-size: 24px;
}

.category-card em {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

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

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #020617);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.8));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(16, 185, 129, 0.94);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-card-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover,
.ranking-list a:hover strong,
.inline-links a:hover,
.footer-links a:hover {
  color: var(--brand);
}

.movie-card-body p {
  margin: 0 0 12px;
  font-size: 14px;
}

.card-meta {
  gap: 6px;
}

.card-meta span,
.card-meta a {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 12px;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ranking-head h2 {
  font-size: 26px;
}

.ranking-head a {
  color: var(--brand-dark);
  font-weight: 900;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 15px;
  background: #f8fafc;
}

.ranking-list span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  font-weight: 900;
}

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

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

.page-main {
  padding-top: 36px;
  padding-bottom: 56px;
}

.page-hero {
  margin-bottom: 32px;
  padding: 44px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(15, 118, 110, 0.88)), radial-gradient(circle at top right, rgba(16, 185, 129, 0.4), transparent 28rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.category-hero,
.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 26px;
  align-items: end;
}

.inline-filter,
.search-filter-panel {
  box-shadow: none;
}

.inline-filter {
  flex-direction: column;
}

.inline-filter input,
.inline-filter select,
.search-filter-panel input,
.search-filter-panel select {
  padding: 13px 14px;
}

.search-filter-panel {
  display: grid;
  grid-template-columns: 1fr 140px 140px 140px;
}

.category-overview {
  display: grid;
  gap: 20px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.category-cover {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

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

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

.category-overview-card p {
  margin: 0 0 14px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.inline-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 800;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
}

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

.ranking-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  font-weight: 950;
}

.ranking-row h2 {
  margin: 8px 0;
  font-size: clamp(22px, 3vw, 32px);
}

.ranking-row p {
  margin: 0 0 12px;
}

.row-action {
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #0f766e);
}

.detail-main {
  padding-top: 26px;
  padding-bottom: 60px;
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  padding: 28px;
  border-radius: 30px;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.28), transparent 28rem), linear-gradient(135deg, #020617, #0f172a 55%, #064e3b);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.detail-info h1 {
  margin: 10px 0 16px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin: 18px 0 26px;
}

.detail-tags span {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.28);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.18), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.34);
  font-size: 34px;
  text-indent: 5px;
}

.player-overlay strong {
  font-size: clamp(22px, 4vw, 38px);
}

.player-overlay em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.detail-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 30px;
}

.detail-copy article {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-copy h2 {
  font-size: 28px;
}

.detail-copy p:last-child {
  margin-bottom: 0;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 950;
}

.site-footer p {
  margin: 0;
}

.footer-links a {
  color: #334155;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

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

  .split-section,
  .category-hero,
  .search-hero,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding: 86px 18px 90px;
  }

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

  .hero-control {
    display: none;
  }

  .panel-wrap,
  .content-section,
  .page-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-bar,
  .search-filter-panel,
  .inline-filter {
    flex-direction: column;
    display: flex;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .detail-copy {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 30px 22px;
    border-radius: 24px;
  }

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

  .ranking-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .row-action {
    grid-column: 1 / -1;
  }

  .detail-hero {
    padding: 18px;
    gap: 22px;
  }

  .detail-poster {
    max-width: 280px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
