:root {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #134e4a;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --card: #ffffff;
  --line: #e5e7eb;
  --gold: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f3f7fb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #0f766e, #0891b2, #2563eb);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #0f766e;
  background: #fff;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand strong {
  display: block;
  font-size: 23px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

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

.nav-link,
.nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 2px;
  color: rgba(255, 255, 255, 0.92);
  border: 0;
  cursor: pointer;
  background: transparent;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown > button:hover {
  color: #fde68a;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  width: 200px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  color: #1f2937;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-dropdown-menu a:hover {
  color: var(--primary);
  background: #ecfeff;
}

.header-search {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 280px;
  height: 42px;
  background: #fff;
  border-radius: 999px;
}

.header-search input,
.mobile-panel input,
.inline-filter input,
.search-page-form input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: #fff;
}

.header-search input {
  padding: 0 86px 0 18px;
}

.header-search button,
.inline-filter button,
.search-page-form button,
.mobile-panel button {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--primary);
}

.header-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  border: 0;
  background: transparent;
  font-size: 28px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, #172554, #0f766e);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f766e, #172554);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 50%, rgba(20, 184, 166, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.hero-pill,
.page-hero span,
.detail-hero-content .breadcrumb {
  display: inline-flex;
  width: fit-content;
  padding: 8px 16px;
  color: #fff;
  background: var(--primary-light);
  border-radius: 999px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 780px;
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.hero-meta {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.88);
}

.meta-line {
  color: var(--muted);
  font-size: 14px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 999px;
}

.hero-actions,
.quick-links,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary {
  color: #fff;
  background: var(--primary-light);
  box-shadow: 0 14px 35px rgba(20, 184, 166, 0.32);
}

.btn-primary:hover {
  background: var(--primary);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.44);
  font-size: 34px;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.52);
}

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

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

.quick-links a {
  flex: 1 1 210px;
  padding: 18px 20px;
  color: #075985;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-weight: 800;
  text-align: center;
}

.block-section {
  margin-top: 56px;
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

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

.section-title a {
  color: var(--primary);
  font-weight: 800;
}

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

.poster-card h3 {
  margin: 12px 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.poster-card h3 a:hover {
  color: var(--primary);
}

.poster-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f766e, #172554);
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.16);
}

.poster-image,
.poster-image img {
  width: 100%;
  height: 100%;
}

.poster-image img {
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.1));
  transition: opacity 0.25s ease;
}

.poster-card:hover .poster-layer {
  opacity: 1;
}

.poster-year,
.poster-region {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  right: 9px;
  bottom: 9px;
  background: rgba(0, 0, 0, 0.68);
}

.poster-region {
  top: 9px;
  left: 9px;
  background: var(--primary-light);
}

.hot-panel {
  padding: 32px;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  border-radius: 30px;
}

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

.rank-list {
  display: grid;
  gap: 16px;
  margin: 30px 0 70px;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 100px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.rank-num {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  height: 64px;
  background: linear-gradient(135deg, #0f766e, #172554);
  border-radius: 12px;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 900;
}

.rank-title:hover {
  color: var(--primary);
}

.rank-body p {
  margin: 0 0 9px;
  color: #4b5563;
  line-height: 1.5;
}

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

.category-grid.large {
  margin-top: 30px;
}

.category-tile {
  display: flex;
  min-height: 140px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.category-tile strong {
  font-size: 24px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.horizontal-cover {
  overflow: hidden;
  min-height: 124px;
  background: linear-gradient(135deg, #0f766e, #172554);
  border-radius: 16px;
}

.horizontal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.horizontal-body h2 {
  margin: 2px 0 10px;
  font-size: 22px;
}

.horizontal-body h2:hover {
  color: var(--primary);
}

.horizontal-body p {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.7;
}

.tag-row span {
  display: inline-flex;
  padding: 5px 9px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.page-main {
  padding-bottom: 72px;
}

.page-hero {
  margin-top: 34px;
  padding: 46px;
  color: #fff;
  background: radial-gradient(circle at 82% 20%, rgba(45, 212, 191, 0.32), transparent 30%), linear-gradient(135deg, #172554, #0f766e);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.inline-filter,
.search-page-form {
  display: flex;
  overflow: hidden;
  max-width: 640px;
  height: 48px;
  margin-top: 24px;
  background: #fff;
  border-radius: 999px;
}

.inline-filter input,
.search-page-form input {
  padding: 0 18px;
}

.inline-filter button,
.search-page-form button {
  min-width: 120px;
  padding: 0 18px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.16));
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 78px 0 70px;
}

.detail-hero h1 {
  max-width: 850px;
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
}

.detail-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  margin-top: -72px;
  position: relative;
  z-index: 3;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.35);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.24), rgba(0, 0, 0, 0.44));
}

.play-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  padding-left: 4px;
  color: #0f766e;
  background: #fff;
  border-radius: 50%;
  font-size: 36px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.play-overlay b {
  font-size: 20px;
}

.player-wrap.is-playing .play-overlay {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 42px;
}

.detail-content,
.detail-side {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.detail-content {
  padding: 34px;
}

.detail-content h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-content p {
  margin: 0 0 26px;
  color: #374151;
  line-height: 1.9;
}

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

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

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

.info-list dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.detail-side {
  align-self: start;
  padding: 24px;
}

.detail-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #374151;
  font-weight: 700;
}

.detail-side a:hover {
  color: var(--primary);
}

.detail-side span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  border-radius: 9px;
  font-size: 13px;
}

.search-results {
  display: grid;
  gap: 16px;
  margin: 30px 0 70px;
}

.empty-state {
  padding: 30px;
  color: var(--muted);
  background: #fff;
  border-radius: 18px;
}

.site-footer {
  margin-top: 70px;
  padding: 48px 0 24px;
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
}

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

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

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

  .header-search {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-panel.is-open {
    display: grid;
    gap: 10px;
  }

  .mobile-panel .nav-link {
    height: auto;
    padding: 10px 0;
  }

  .mobile-panel form {
    display: flex;
    overflow: hidden;
    height: 42px;
    background: #fff;
    border-radius: 999px;
  }

  .mobile-panel input {
    padding: 0 14px;
  }

  .mobile-panel button {
    min-width: 82px;
  }

  .hero-carousel {
    height: 540px;
  }

  .hero-content p {
    font-size: 16px;
  }

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

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

  .detail-side {
    order: -1;
  }
}

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

  .brand strong {
    font-size: 19px;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .horizontal-card {
    grid-template-columns: 115px 1fr;
    gap: 14px;
  }

  .horizontal-cover {
    min-height: 148px;
  }

  .horizontal-body h2 {
    font-size: 18px;
  }

  .horizontal-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .rank-item {
    grid-template-columns: 44px 82px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-num {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .rank-cover {
    height: 72px;
  }

  .page-hero,
  .detail-content,
  .detail-side,
  .hot-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}
