:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --line: #ccfbf1;
  --teal: #0d9488;
  --teal-deep: #0f766e;
  --cyan: #0891b2;
  --slate: #0f172a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #ecfeff 45%, #f0fdfa 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(20, 184, 166, 0.18);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.32);
  font-size: 15px;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
  transition: 0.2s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--teal-deep);
  background: #f0fdfa;
}

.header-search {
  display: flex;
  align-items: center;
  width: 286px;
  padding: 4px;
  border: 1px solid #99f6e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.header-search input,
.mobile-search input,
.page-tools input,
.search-tools select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  padding: 8px 10px;
  font-size: 14px;
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--teal);
  cursor: pointer;
  transition: 0.2s ease;
}

.header-search button {
  padding: 8px 12px;
  font-size: 13px;
}

.header-search button:hover,
.mobile-search button:hover {
  background: var(--teal-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f0fdfa;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--teal-deep);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid #ccfbf1;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 13px 16px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mobile-search input {
  padding: 12px 14px;
  border: 1px solid #99f6e4;
  border-radius: 14px;
  background: #ffffff;
}

.mobile-search button {
  padding: 0 16px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.75s ease, transform 1.2s ease, visibility 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 26%, rgba(20, 184, 166, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.62) 42%, rgba(15, 23, 42, 0.96));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: 24px;
  bottom: 82px;
  max-width: 720px;
  color: #ffffff;
}

.eyebrow,
.meta-pills,
.tag-cloud,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eyebrow span,
.meta-pills span,
.meta-pills a,
.tag-cloud span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow span {
  padding: 7px 11px;
  color: #e6fffb;
  background: rgba(13, 148, 136, 0.78);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 660px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions,
.quick-links,
.page-tools,
.pager-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.quick-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn {
  padding: 13px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 38px rgba(8, 145, 178, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(8, 145, 178, 0.36);
}

.ghost-btn,
.quick-links a {
  padding: 12px 18px;
  color: #ecfeff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover,
.quick-links a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ghost-btn.light {
  color: var(--teal-deep);
  border-color: #99f6e4;
  background: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.quick-panel,
.section-wrap,
.detail-wrap,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: -46px;
  position: relative;
  z-index: 5;
  padding: 26px;
  border: 1px solid rgba(153, 246, 228, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-panel h2,
.section-title h2,
.page-hero h1,
.detail-card h1,
.side-card h2,
.footer-block h2,
.ranking-block h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.03em;
}

.quick-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.quick-panel p,
.section-title p,
.page-hero p,
.category-overview-card p,
.side-card p {
  color: var(--muted);
  line-height: 1.8;
}

.section-wrap {
  padding: 72px 0 0;
}

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

.section-title span,
.page-hero span,
.category-overview-card span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.section-title > a,
.text-link {
  color: var(--teal-deep);
  font-weight: 900;
}

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

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

.movie-card,
.panel-card,
.category-overview-card,
.detail-card,
.side-card,
.ranking-block {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: #99f6e4;
  transform: translateY(-7px);
  box-shadow: 0 28px 64px rgba(15, 118, 110, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img,
.mini-card img,
.rank-item img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-link img,
.mini-card:hover img,
.rank-item:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.75));
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 800;
}

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

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

.movie-card p {
  display: -webkit-box;
  margin: 0 0 14px;
  min-height: 48px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  padding: 5px 8px;
  color: #475569;
  background: #f1f5f9;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
}

.panel-card,
.ranking-block {
  padding: 24px;
}

.accent-panel {
  background: linear-gradient(135deg, #ffffff, #ecfeff);
}

.compact-title {
  margin-bottom: 18px;
}

.compact-title h2 {
  font-size: 26px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.mini-card:hover {
  background: #f8fafc;
}

.mini-card img {
  height: 74px;
  border-radius: 13px;
}

.mini-card strong,
.rank-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card em,
.rank-copy em {
  display: block;
  margin-top: 7px;
  color: var(--teal-deep);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.rank-item:hover {
  background: rgba(240, 253, 250, 0.9);
}

.rank-num {
  color: var(--teal);
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  height: 62px;
  border-radius: 12px;
}

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

.category-tile {
  min-height: 230px;
  padding: 16px;
  border: 1px solid rgba(153, 246, 228, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(15, 118, 110, 0.14);
}

.tile-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  height: 96px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 16px;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-tile span {
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  background:
    radial-gradient(circle at 75% 20%, rgba(20, 184, 166, 0.28), transparent 30%),
    linear-gradient(135deg, #0f172a, #134e4a 55%, #083344);
}

.slim-hero {
  padding: 82px 0 72px;
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
}

.page-hero span,
.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.page-tools {
  margin-top: 26px;
}

.page-tools input,
.search-tools select {
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(153, 246, 228, 0.92);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
}

.search-tools select {
  color: var(--text);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  padding: 22px;
}

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

.ranking-layout {
  display: grid;
  gap: 28px;
}

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

.detail-wrap {
  padding: 34px 0 0;
}

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

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

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.25), rgba(15, 23, 42, 0.52));
  cursor: pointer;
  transition: 0.25s ease;
}

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

.player-icon {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 22px 48px rgba(8, 145, 178, 0.38);
  font-size: 28px;
}

.video-error {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
}

.video-error.is-visible {
  display: block;
}

.detail-card,
.side-card {
  padding: 26px;
}

.meta-pills {
  margin-bottom: 16px;
}

.meta-pills span,
.meta-pills a {
  padding: 7px 11px;
  color: var(--teal-deep);
  background: #ccfbf1;
}

.detail-card h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

.lead-text {
  margin: 18px 0 20px;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.tag-cloud {
  margin-bottom: 28px;
}

.tag-cloud span {
  padding: 8px 11px;
  color: #475569;
  background: #f1f5f9;
}

.article-copy h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.article-copy p {
  margin: 0 0 14px;
  color: #334155;
  line-height: 1.95;
}

.gradient-side {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.gradient-side h2,
.gradient-side p {
  color: #ffffff;
}

.gradient-side .primary-btn {
  background: #ffffff;
  color: var(--teal-deep);
}

.pager-links a {
  flex: 1 1 280px;
  padding: 16px 18px;
  border: 1px solid #ccfbf1;
  border-radius: 16px;
  color: var(--teal-deep);
  background: #ffffff;
  font-weight: 900;
}

.empty-tip {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border-radius: 18px;
  color: #475569;
  background: #ffffff;
  text-align: center;
}

.empty-tip.is-visible {
  display: block;
}

.site-footer {
  margin-top: 86px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #134e4a 58%, #083344);
}

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

.footer-logo {
  margin-bottom: 16px;
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 520px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-block h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-block li + li {
  margin-top: 10px;
}

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

.footer-bottom {
  padding: 20px;
  border-top: 1px solid rgba(94, 234, 212, 0.18);
  color: #94a3b8;
  text-align: center;
}

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

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

  .featured-grid,
  .category-overview-grid,
  .two-column-section,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .brand {
    font-size: 19px;
  }

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

  .hero {
    min-height: 560px;
    height: 74vh;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 86px;
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-panel {
    display: block;
    margin-top: -30px;
  }

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

  .section-wrap {
    padding-top: 54px;
  }

  .section-title {
    display: block;
  }

  .section-title > a {
    display: inline-flex;
    margin-top: 12px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .detail-side,
  .wide-rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .mini-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .rank-item {
    grid-template-columns: 36px 84px minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  .header-inner,
  .mobile-panel,
  .quick-panel,
  .section-wrap,
  .detail-wrap,
  .footer-inner,
  .page-hero-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .movie-grid,
  .featured-grid,
  .category-grid,
  .detail-side,
  .wide-rank {
    grid-template-columns: 1fr;
  }

  .tile-images {
    height: 82px;
  }

  .page-tools input,
  .search-tools select {
    max-width: 100%;
  }

  .detail-card,
  .side-card,
  .panel-card,
  .ranking-block {
    padding: 18px;
  }

  .player-icon {
    width: 64px;
    height: 64px;
  }
}
