:root {
  color-scheme: light;
  --teal: #0f766e;
  --cyan: #0891b2;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f1f5f9;
  --paper: #ffffff;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, #eef7fb 42%, #f8fafc 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #0f766e 0%, #0891b2 48%, #2563eb 100%);
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.24);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0f766e;
  background: linear-gradient(135deg, #fef08a, #ffffff);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.2);
}

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

.brand-text strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

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

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

.main-nav a,
.mobile-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover {
  color: #fde68a;
  opacity: 1;
}

.header-search {
  display: flex;
  align-items: center;
  width: 280px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-nav input,
.page-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
}

.header-search input {
  padding: 10px 14px;
  color: #ffffff;
}

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

.header-search button,
.mobile-nav button {
  border: 0;
  padding: 10px 14px;
  color: #0f766e;
  background: #ffffff;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 118, 110, 0.96);
}

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

.mobile-nav-inner {
  display: grid;
  gap: 14px;
  padding: 16px 0 20px;
}

.mobile-nav form {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-nav input {
  padding: 12px 14px;
  color: #ffffff;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #061824;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 118, 110, 0.68), rgba(37, 99, 235, 0.38)),
    var(--hero-cover) center / cover no-repeat;
  filter: saturate(1.15);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 32%, rgba(45, 212, 191, 0.24), transparent 30rem),
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.72) 100%);
  backdrop-filter: blur(4px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 72px 0;
  color: #ffffff;
}

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

.hero-kicker,
.section-heading span,
.ranking-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.hero-kicker {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.hero-copy p {
  max-width: 700px;
  margin: 0;
  color: #e0f2fe;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
}

.hero-tags,
.card-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.card-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.text {
  color: #fde68a;
  background: transparent;
}

.hero-poster {
  position: relative;
  display: block;
  padding: 12px;
  border-radius: 30px;
  overflow: hidden;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
  text-decoration: none;
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4.3;
  width: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.hero-poster span {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.88);
  font-weight: 900;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.32);
  font-size: 38px;
  line-height: 0;
  backdrop-filter: blur(10px);
}

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

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

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

.hero-dots button {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.active {
  background: #fde68a;
}

.section-block {
  margin: 54px auto;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -48px;
  position: relative;
  z-index: 5;
}

.quick-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.quick-card strong {
  display: block;
  font-size: 26px;
  color: var(--teal);
}

.quick-card span {
  color: var(--muted);
}

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

.section-heading.align-start {
  align-items: start;
}

.section-heading h2,
.ranking-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 900;
}

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

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.category-tile img,
.category-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.category-overlay {
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.category-name,
.category-desc {
  position: relative;
  z-index: 1;
}

.category-name {
  font-size: 24px;
  font-weight: 950;
}

.category-desc {
  margin-top: 6px;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.5;
}

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

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

.movie-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.62));
}

.poster-badge,
.poster-type,
.rank-corner {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 12px;
  background: rgba(20, 184, 166, 0.9);
}

.poster-type {
  right: 12px;
  background: rgba(37, 99, 235, 0.88);
}

.rank-corner {
  left: 12px;
  top: 52px;
  background: rgba(239, 68, 68, 0.92);
}

.card-content {
  padding: 16px;
}

.card-content h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.card-content h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card-content h3 a:hover {
  color: var(--teal);
}

.card-meta,
.card-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  margin-top: 13px;
}

.card-tags span {
  color: #0f766e;
  background: #ecfeff;
  border-color: rgba(20, 184, 166, 0.22);
}

.movie-card.compact .card-desc,
.movie-card.compact .card-meta {
  display: none;
}

.movie-card.compact .card-content {
  padding: 13px;
}

.movie-card.compact .card-tags {
  display: none;
}

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

.ranking-panel,
.text-panel {
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 96px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 38px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #ecfeff;
  transform: translateX(4px);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 950;
}

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

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(254, 240, 138, 0.16), transparent 26rem),
    linear-gradient(135deg, #0f766e 0%, #0891b2 48%, #2563eb 100%);
  padding: 78px 0 68px;
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: #dffafe;
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a {
  color: #fef3c7;
  text-decoration: none;
  font-weight: 800;
}

.page-search-box {
  max-width: 620px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.page-search-box input {
  padding: 16px 20px;
  color: #ffffff;
  font-size: 17px;
}

.page-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.page-search-box.prominent {
  max-width: 780px;
}

.no-results {
  margin: 26px 0;
  padding: 28px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

.detail-hero {
  position: relative;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 118, 110, 0.7), rgba(37, 99, 235, 0.34)),
    var(--detail-cover) center / cover no-repeat;
  overflow: hidden;
}

.detail-shade {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(5px);
  background: radial-gradient(circle at 75% 20%, rgba(45, 212, 191, 0.24), transparent 28rem);
}

.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: 560px;
  padding: 60px 0;
}

.detail-poster {
  display: block;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 20px;
}

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

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

.detail-copy p {
  max-width: 820px;
  color: #e0f2fe;
  font-size: 19px;
  line-height: 1.75;
}

.player-section {
  scroll-margin-top: 110px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 26px 72px rgba(2, 6, 23, 0.36);
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0f766e;
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.34);
}

.play-overlay strong {
  font-size: 22px;
}

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

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.text-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
  font-size: 16px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
}

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

  .ranking-panel {
    position: static;
  }

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

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

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

  .brand-text strong {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-grid {
    min-height: 720px;
  }

  .hero-grid {
    gap: 26px;
    padding: 46px 0 84px;
  }

  .hero-arrow {
    top: auto;
    bottom: 22px;
    transform: none;
  }

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

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

  .hero-dots {
    bottom: 42px;
  }

  .quick-panel,
  .category-grid,
  .category-grid.large,
  .movie-grid,
  .compact-grid,
  .detail-content,
  .about-content,
  .ranking-list.wide {
    grid-template-columns: 1fr 1fr;
  }

  .split-layout {
    gap: 18px;
  }

  .detail-grid {
    min-height: auto;
    padding: 42px 0;
  }
}

@media (max-width: 520px) {
  .quick-panel,
  .category-grid,
  .category-grid.large,
  .movie-grid,
  .compact-grid,
  .detail-content,
  .about-content,
  .ranking-list.wide {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

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

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