:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #f0fdfa;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #0f766e;
  --brand-2: #0891b2;
  --brand-3: #14b8a6;
  --gold: #f59e0b;
  --shadow: 0 20px 45px rgb(15 23 42 / 0.10);
  --soft-shadow: 0 10px 25px rgb(15 23 42 / 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgb(20 184 166 / 0.14), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

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

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

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

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

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

.site-logo,
.footer-logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px rgb(13 148 136 / 0.25);
}

.desktop-nav,
.mobile-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.footer-links a {
  border-radius: 999px;
  padding: 10px 16px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.footer-links a:hover {
  color: var(--brand);
  background: #ccfbf1;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #0f172a;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgb(45 212 191 / 0.32), transparent 22rem),
    linear-gradient(90deg, rgb(15 23 42 / 0.92), rgb(15 23 42 / 0.72), rgb(15 23 42 / 0.48));
  z-index: 1;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 999px;
  padding: 8px 13px;
  color: #d1fae5;
  background: rgb(15 23 42 / 0.36);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #e2e8f0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  background: rgb(255 255 255 / 0.16);
}

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

.button,
.button-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 15px 28px rgb(8 145 178 / 0.25);
}

.button-ghost {
  color: #ffffff;
  border: 1px solid rgb(255 255 255 / 0.24);
  background: rgb(255 255 255 / 0.13);
  backdrop-filter: blur(12px);
}

.button:hover,
.button-ghost:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 30px;
  background: rgb(255 255 255 / 0.1);
  box-shadow: 0 26px 70px rgb(0 0 0 / 0.28);
  transform: rotate(2deg);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgb(15 23 42 / 0.42);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.35);
  cursor: pointer;
}

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

.quick-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 22px;
}

.search-panel,
.hot-entry,
.info-card,
.category-card,
.filter-panel,
.detail-panel,
.video-panel,
.breadcrumbs,
.site-footer {
  border: 1px solid rgb(226 232 240 / 0.85);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.search-panel,
.hot-entry,
.filter-panel,
.detail-panel,
.video-panel {
  padding: 22px;
}

.search-form,
.filter-panel {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-form input,
.filter-panel input,
.filter-panel select,
.search-page-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: var(--text);
  background: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-page-form input:focus {
  border-color: var(--brand-3);
  box-shadow: 0 0 0 4px rgb(20 184 166 / 0.14);
}

.hot-entry {
  display: grid;
  gap: 10px;
  align-content: center;
  background:
    linear-gradient(135deg, rgb(15 118 110 / 0.95), rgb(8 145 178 / 0.95)),
    #0f766e;
  color: #ffffff;
}

.hot-entry p,
.search-panel p,
.category-card p,
.section-heading p,
.page-hero p,
.footer-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hot-entry p {
  color: #dffcf6;
}

.content-section {
  margin-top: 42px;
}

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

.section-heading h2,
.page-hero h1,
.detail-title {
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-more {
  color: var(--brand);
  background: #ccfbf1;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgb(226 232 240 / 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgb(20 184 166 / 0.42);
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgb(15 23 42 / 0.13);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #0f172a);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.duration-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgb(15 23 42 / 0.72);
  backdrop-filter: blur(10px);
}

.duration-pill {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--brand);
}

.movie-line {
  display: -webkit-box;
  min-height: 43px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.movie-meta span {
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border-radius: 999px;
  padding: 5px 8px;
  color: #0f766e;
  background: #f0fdfa;
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  border-radius: 30px;
  padding: 34px;
  background:
    radial-gradient(circle at 15% 10%, rgb(20 184 166 / 0.20), transparent 22rem),
    linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: var(--soft-shadow);
}

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

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

.category-card {
  overflow: hidden;
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  border-radius: 18px;
  object-fit: cover;
}

.category-card h2,
.category-card h3,
.hot-entry h3,
.search-panel h3 {
  margin: 0 0 8px;
  color: #0f172a;
}

.hot-entry h3 {
  color: #ffffff;
}

.filter-panel {
  position: sticky;
  top: 88px;
  z-index: 6;
  margin-bottom: 20px;
}

.empty-message {
  display: none;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 18px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--brand);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.detail-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px;
}

.detail-title {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-intro {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-meta span {
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
}

.video-panel {
  margin-bottom: 28px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle, rgb(20 184 166 / 0.18), transparent 18rem),
    linear-gradient(180deg, rgb(2 6 23 / 0.08), rgb(2 6 23 / 0.55));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 45px rgb(8 145 178 / 0.35);
  font-size: 34px;
  transform: translateX(3px);
}

.video-player.is-playing .play-overlay {
  visibility: hidden;
  opacity: 0;
}

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.info-card {
  padding: 24px;
}

.info-card + .info-card {
  margin-top: 18px;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 12px;
}

.info-card p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

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

.side-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #f8fafc;
}

.side-item img {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.side-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-item span {
  color: #64748b;
  font-size: 12px;
}

.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 760px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 36px;
}

.footer-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
}

.footer-inner p {
  max-width: 460px;
}

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

  .mobile-menu-button {
    display: block;
  }

  .mobile-nav.is-open {
    display: flex;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 36px 24px 82px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

  .quick-panel,
  .detail-hero,
  .content-columns {
    grid-template-columns: 1fr;
  }

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

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

  .filter-panel,
  .search-form,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 640px) {
  main {
    width: min(100% - 22px, 1180px);
    padding-top: 16px;
  }

  .header-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .hero {
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-control {
    display: none;
  }

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

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

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

  .movie-card {
    border-radius: 18px;
  }

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

  .movie-title {
    min-height: auto;
    font-size: 15px;
  }

  .movie-line {
    display: none;
  }

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

  .page-hero,
  .detail-panel,
  .search-panel,
  .hot-entry,
  .info-card {
    padding: 20px;
    border-radius: 22px;
  }

  .detail-poster img {
    min-height: auto;
  }
}
