:root {
  --brand: #00a3af;
  --brand-dark: #037985;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f4f7f8;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(0, 163, 175, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  padding: 9px 14px;
  font-weight: 800;
}

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

.hero-slider {
  position: relative;
  min-height: 620px;
  margin: 28px auto 48px;
  overflow: hidden;
  border-radius: 36px;
  background: #061f24;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: relative;
  min-height: 620px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 70px;
  color: #ffffff;
  isolation: isolate;
}

.hero-slide.active {
  display: flex;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: blur(8px);
  opacity: 0.52;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 35%, rgba(0, 163, 175, 0.44), transparent 32%),
    linear-gradient(90deg, rgba(2, 18, 22, 0.96), rgba(2, 18, 22, 0.72), rgba(2, 18, 22, 0.18));
}

.hero-copy {
  width: min(640px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: #6ee7f0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 42px);
}

.hero-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.primary-btn,
.ghost-btn,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn,
.search-form button {
  border: 0;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 16px 28px rgba(0, 163, 175, 0.28);
}

.primary-btn:hover,
.search-form button:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  flex: 0 0 min(340px, 34vw);
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 34px;
  display: flex;
  gap: 9px;
  z-index: 5;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.search-band,
.page-hero,
.detail-hero,
.section-block,
.ranking-panel,
.player-section,
.detail-layout {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  align-items: center;
  gap: 24px;
  padding: 30px;
  margin-bottom: 46px;
}

.search-band h2,
.section-heading h2,
.detail-section h2,
.detail-sidebar h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.search-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.search-form,
.inline-filter {
  display: flex;
  gap: 12px;
}

.search-form input,
.inline-filter input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  outline: none;
}

.search-form input:focus,
.inline-filter input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 163, 175, 0.12);
}

.section-block {
  padding: 34px;
  margin: 0 0 46px;
}

.no-margin {
  margin: 0;
}

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

.section-heading p {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading a {
  color: var(--brand);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: 0.25s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
  opacity: 0.72;
}

.category-tile span {
  position: absolute;
  inset: auto 18px 18px 18px;
  color: #ffffff;
}

.category-tile strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

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

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

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

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

.movie-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: 0.22s ease;
}

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

.poster-shell {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.poster-shell img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: 0.22s ease;
}

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

.movie-year {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 12px;
  font-weight: 900;
}

.play-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(0, 163, 175, 0.28);
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}

.movie-body strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.movie-body em {
  color: var(--brand);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.movie-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
  gap: 28px;
  margin-bottom: 54px;
}

.ranking-panel {
  padding: 30px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: 0.2s ease;
}

.compact-card:hover {
  background: #e8fbfd;
}

.compact-card img {
  width: 68px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  align-items: center;
  gap: 32px;
  padding: 46px;
  margin: 30px 0 40px;
  background:
    radial-gradient(circle at top right, rgba(0, 163, 175, 0.18), transparent 34%),
    #ffffff;
}

.slim-hero h1 {
  color: #111827;
}

.slim-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.search-wide {
  width: 100%;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  color: #374151;
  background: #ffffff;
  font-weight: 800;
}

.filter-bar button:hover,
.filter-bar button.active {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
}

.ranking-page {
  display: grid;
  gap: 14px;
  margin-bottom: 52px;
}

.rank-row a {
  display: grid;
  grid-template-columns: 56px 82px 1fr 54px;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-row strong {
  color: var(--brand);
  font-size: 22px;
}

.rank-row img {
  width: 82px;
  height: 108px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-row b,
.rank-row em,
.rank-row small {
  display: block;
}

.rank-row b {
  font-size: 19px;
}

.rank-row em {
  margin: 4px 0;
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
}

.rank-row small {
  color: var(--muted);
}

.rank-row i {
  justify-self: end;
  color: #d97706;
  font-style: normal;
  font-size: 22px;
  font-weight: 900;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 36px;
  padding: 42px;
  margin: 30px 0 28px;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 163, 175, 0.16), transparent 28%),
    #ffffff;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-one-line {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--brand-dark);
  background: #e6fbfd;
  font-size: 13px;
  font-weight: 900;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.meta-list div {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
}

.meta-list dt {
  color: var(--muted);
  font-size: 12px;
}

.meta-list dd {
  margin: 3px 0 0;
  color: #111827;
  font-weight: 900;
}

.player-section {
  padding: 20px;
  margin-bottom: 28px;
  background: #07191e;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

.player-frame.playing .player-start {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 34px;
  margin-bottom: 54px;
}

.detail-content {
  min-width: 0;
}

.detail-section + .detail-section {
  margin-top: 34px;
}

.detail-section p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 17px;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 20px;
  border-radius: 22px;
  background: #f8fafc;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--brand);
  font-size: 20px;
}

.is-hidden {
  display: none !important;
}

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

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

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

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero-slider,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 24px 74px;
  }

  .hero-poster {
    flex: auto;
    width: min(260px, 100%);
  }

  .hero-control {
    top: auto;
    bottom: 24px;
  }

  .hero-prev {
    left: auto;
    right: 84px;
  }

  .hero-next {
    right: 24px;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .search-band,
  .page-hero,
  .detail-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

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

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

@media (max-width: 560px) {
  main,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .site-logo {
    font-size: 20px;
  }

  .section-block,
  .ranking-panel,
  .detail-layout {
    padding: 20px;
  }

  .category-grid,
  .large-category-grid,
  .movie-grid,
  .small-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-row a {
    grid-template-columns: 42px 70px 1fr;
  }

  .rank-row i {
    display: none;
  }

  .search-form,
  .inline-filter {
    flex-direction: column;
  }

  .search-form button {
    width: 100%;
  }
}
