
:root {
  --bg: #f9fafb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: #fff7ed;
  --dark: #111827;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(17, 24, 39, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, .9);
}

.topbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 12px 24px rgba(249, 115, 22, .28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  flex: 1;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color .22s ease, transform .22s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: #374151;
  font-weight: 700;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 18%, rgba(249, 115, 22, .42), transparent 34%), linear-gradient(0deg, rgba(17, 24, 39, .92), transparent 54%);
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  min-height: 600px;
  margin: 0 auto;
  padding: 88px 22px 140px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 52px;
}

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

.eyebrow,
.page-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, .14);
  color: #fb923c;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
}

.hero h1,
.page-title h1,
.detail-info h1 {
  margin: 18px 0 18px;
  line-height: 1.08;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 950;
  letter-spacing: -.055em;
}

.hero p,
.page-title p,
.lead-text {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
}

.hero-tags,
.tag-row,
.quick-tags,
.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags,
.tag-row {
  margin-top: 20px;
}

.hero-tags span,
.tag-row span,
.quick-tags a,
.hero-categories a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.hero-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
}

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

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

.primary-button,
.side-search button,
.hero-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  box-shadow: 0 16px 32px rgba(249, 115, 22, .3);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
}

.primary-button:hover,
.ghost-button:hover,
.side-search button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 500px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, .45);
  transform: rotate(2deg);
  background: linear-gradient(135deg, #1f2937, #111827);
}

.hero-poster img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(1196px, calc(100% - 44px));
  transform: translateX(-50%);
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 18px;
  align-items: center;
}

.hero-search,
.side-search {
  display: flex;
  gap: 10px;
}

.hero-search input,
.side-search input,
.local-filter input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  outline: none;
  color: var(--ink);
  background: #fff;
}

.hero-categories a,
.quick-tags a {
  padding: 8px 13px;
  background: rgba(255, 255, 255, .9);
  color: #374151;
}

.hero-controls {
  position: absolute;
  right: max(22px, calc((100% - 1240px) / 2 + 22px));
  bottom: 162px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.hero-controls div {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, .4);
}

.hero-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: #fff;
}

.page-section,
.inner-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 22px;
}

.inner-page {
  padding-top: 44px;
}

.no-top-padding {
  padding-top: 0;
}

.section-heading,
.category-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2,
.category-panel h2,
.side-panel h2,
.content-section h2,
.player-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -.035em;
}

.section-heading p,
.category-panel p,
.side-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: var(--accent-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(17, 24, 39, .08);
  border: 1px solid rgba(229, 231, 235, .85);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(249, 115, 22, .35);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, .72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-content {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

.card-meta span {
  color: #9ca3af;
}

.card-content h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 950;
}

.card-content h3 a:hover {
  color: var(--accent-dark);
}

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

.tag-row span {
  padding: 6px 10px;
  color: #9a3412;
  background: var(--accent-soft);
}

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

.rank-list,
.side-panel,
.category-panel,
.content-section,
.player-section,
.detail-hero,
.page-title {
  border: 1px solid rgba(229, 231, 235, .88);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(17, 24, 39, .08);
}

.rank-list {
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: var(--accent-soft);
}

.rank-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  font-weight: 950;
}

.rank-row img {
  width: 56px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.rank-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.side-panel {
  position: sticky;
  top: 86px;
  padding: 24px;
}

.side-search {
  margin-top: 18px;
}

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

.quick-tags a {
  background: var(--soft);
}

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

.category-tile {
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(17, 24, 39, .07);
  transition: transform .22s ease, box-shadow .22s ease;
}

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

.category-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}

.category-posters img {
  height: 74px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: var(--soft);
}

.category-tile strong,
.category-tile span {
  display: block;
}

.category-tile strong {
  font-size: 18px;
  font-weight: 950;
}

.category-tile span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.compact-section {
  padding-top: 30px;
}

.page-title {
  margin-bottom: 34px;
  padding: 46px;
  background: radial-gradient(circle at right top, #fff7ed, transparent 36%), #fff;
}

.page-title h1 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 62px);
}

.page-title p {
  color: var(--muted);
}

.category-listing {
  display: grid;
  gap: 30px;
}

.category-panel {
  padding: 26px;
}

.local-filter {
  margin: 24px 0 0;
  max-width: 560px;
}

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

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

.detail-hero {
  padding: 30px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: center;
  background: radial-gradient(circle at right top, #fff7ed, transparent 38%), #fff;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 58px rgba(17, 24, 39, .18);
  background: var(--soft);
}

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

.detail-info h1 {
  color: var(--ink);
  font-size: clamp(34px, 4.8vw, 60px);
}

.detail-info .lead-text {
  color: #374151;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: #374151;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-section,
.content-section {
  margin-top: 34px;
  padding: 30px;
}

.player-wrap {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, .24), rgba(2, 6, 23, .54));
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  box-shadow: 0 22px 50px rgba(249, 115, 22, .42);
  font-size: 32px;
  padding-left: 5px;
}

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

.content-section p {
  margin: 12px 0 26px;
  color: #374151;
  font-size: 17px;
}

.search-page-box {
  max-width: 760px;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 22px;
  display: grid;
  grid-template-columns: 1.3fr .7fr .8fr;
  gap: 42px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.site-footer a {
  display: block;
  margin-top: 9px;
  color: #d1d5db;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

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

.image-missing {
  visibility: hidden;
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

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

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px 16px;
  }

  .hero {
    min-height: 740px;
  }

  .hero-inner {
    padding: 68px 16px 238px;
  }

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

  .hero-panel {
    bottom: 22px;
    width: calc(100% - 28px);
  }

  .hero-search,
  .side-search {
    flex-direction: column;
  }

  .hero-controls {
    right: 16px;
    bottom: 222px;
  }

  .page-section,
  .inner-page {
    padding: 44px 16px;
  }

  .section-heading,
  .category-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .card-content {
    padding: 13px;
  }

  .card-content p {
    min-height: 46px;
    font-size: 13px;
  }

  .page-title,
  .category-panel,
  .content-section,
  .player-section,
  .detail-hero {
    padding: 22px;
    border-radius: 22px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid-small,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 34px 48px 1fr;
  }

  .rank-row img {
    width: 48px;
    height: 64px;
  }
}
