:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.28);
}

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

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--teal-600);
  background: var(--teal-50);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 12px;
  color: var(--slate-700);
  background: var(--slate-100);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid var(--slate-200);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

main {
  min-height: 60vh;
}

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

.hero-slider {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.7s ease;
  background-position: center;
  background-size: cover;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(20, 184, 166, 0.28), transparent 36%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.26));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 54px;
  align-items: center;
  padding: 72px 0;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--teal-100);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.85;
}

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

.hero-search {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(620px, 100%);
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.hero-search input {
  min-width: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  padding: 12px 14px;
  outline: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  box-shadow: 0 18px 28px rgba(20, 184, 166, 0.32);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-light {
  color: var(--teal-600);
  background: var(--white);
}

.hero-poster-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.32), rgba(8, 145, 178, 0.32));
}

.hero-poster-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-poster-caption strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-poster-caption span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
  background: var(--white);
}

.quick-categories {
  position: relative;
  z-index: 6;
  margin-top: -36px;
}

.quick-category-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-category-inner a {
  padding: 16px;
  border-radius: 18px;
  color: var(--slate-700);
  background: linear-gradient(135deg, var(--slate-50), var(--white));
  border: 1px solid var(--slate-200);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.quick-category-inner a:hover {
  color: var(--teal-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 56px auto;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--slate-500);
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  display: block;
}

.poster-shell {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--teal-50), #cffafe);
}

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

.movie-card:hover .poster-shell img {
  transform: scale(1.08);
}

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.28);
}

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

.movie-title {
  display: block;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.movie-card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 9px 0 12px;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-meta span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span {
  color: var(--slate-500);
  background: var(--slate-100);
}

.movie-tags {
  margin-top: 9px;
}

.movie-tags span {
  color: var(--teal-600);
  background: var(--teal-50);
}

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

.category-tile {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-kicker {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal-600);
  background: var(--teal-50);
  font-size: 12px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 18px;
  color: var(--slate-900);
  font-size: 25px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 18px;
  color: var(--slate-500);
  line-height: 1.7;
  font-size: 14px;
}

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

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-50), #cffafe);
}

.filter-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 22px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-soft);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 210px));
  gap: 14px;
  align-items: end;
}

.filter-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 900;
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  color: var(--slate-800);
  background: var(--slate-50);
  padding: 0 14px;
  outline: none;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.empty-state {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 16px;
  color: var(--slate-500);
  background: var(--slate-50);
  text-align: center;
  font-weight: 700;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-soft);
}

.ranking-item .poster-shell {
  border-radius: 14px;
}

.ranking-info strong {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-900);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-info p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.page-hero {
  padding: 72px 0 42px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, rgba(20, 184, 166, 0.3), transparent 32%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.82;
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 44px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side,
.text-card {
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-soft);
}

.detail-main {
  overflow: hidden;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: var(--slate-900);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(20, 184, 166, 0.26), transparent 42%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.52));
}

.player-cover.is-hidden {
  display: none;
}

.player-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  padding: 16px 26px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 20px 42px rgba(8, 145, 178, 0.34);
}

.detail-content {
  padding: 28px;
}

.detail-content h2,
.text-card h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-content p,
.text-card p {
  margin: 0 0 18px;
  color: var(--slate-700);
  line-height: 1.9;
}

.detail-side {
  padding: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--teal-50), #cffafe);
}

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

.info-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-500);
  font-weight: 700;
}

.info-list strong {
  color: var(--slate-800);
  text-align: right;
}

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

.text-card {
  width: min(1240px, calc(100% - 32px));
  margin: 36px auto;
  padding: 28px;
}

.site-footer {
  margin-top: 72px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
  padding: 44px 0;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 2px;
  }

  .nav-link {
    padding: 9px 10px;
  }

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content,
  .page-hero .container,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    max-width: 360px;
  }

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

  .filter-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .brand-icon {
    width: 38px;
    height: 38px;
  }

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

  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding: 54px 0 78px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-search,
  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .quick-categories {
    margin-top: 18px;
  }

  .quick-category-inner,
  .movie-grid,
  .related-grid,
  .category-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .content-section,
  .filter-panel,
  .detail-layout,
  .text-card {
    width: min(100% - 24px, 1240px);
  }

  .detail-content,
  .text-card {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .quick-category-inner,
  .movie-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
