/* Static movie site styles generated from the uploaded theme requirements. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #b45309;
  --accent-dark: #92400e;
  --accent-soft: #fef3c7;
  --dark: #0f172a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--text);
}

.logo:hover {
  color: var(--accent);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  box-shadow: 0 12px 25px rgba(180, 83, 9, 0.25);
}

.logo-text {
  font-size: 22px;
  letter-spacing: 0.02em;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 290px;
}

.header-search input,
.big-search input,
.local-filter input,
.search-page-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.big-search input:focus,
.local-filter input:focus,
.search-page-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button,
.big-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.big-search button:hover,
.search-page-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
  color: #374151;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 24px 110px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(2px) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.76) 48%, rgba(15, 23, 42, 0.3));
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content .eyebrow {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.26);
}

.hero-content h1 {
  max-width: 820px;
  margin: 22px 0 16px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 14px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

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

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

.hero-poster {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  width: min(1280px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.hero-controls > button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.55;
}

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

.quick-search-panel,
.content-section,
.page-hero-inner,
.detail-inner,
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-panel {
  margin-top: -48px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quick-search-panel h2 {
  margin: 12px 0 6px;
  font-size: 28px;
  line-height: 1.2;
}

.quick-search-panel p {
  margin: 0;
  color: var(--muted);
}

.big-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-section {
  padding-top: 72px;
  padding-bottom: 10px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

.section-link,
.text-button {
  color: var(--accent);
  font-size: 15px;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.article-card,
.ranking-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.category-tile {
  display: block;
  padding: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 83, 9, 0.35);
  box-shadow: var(--shadow);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.category-cover-stack img,
.category-image-strip img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.category-tile h3,
.movie-card h3,
.category-overview-body h2 {
  margin: 0;
  color: var(--text);
}

.category-tile p,
.movie-card p,
.category-overview-body p {
  color: var(--muted);
}

.category-tile span,
.category-overview-body > span {
  color: var(--accent);
  font-weight: 800;
}

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

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.04);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 14px;
}

.card-meta,
.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.3;
}

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

.movie-card p {
  min-height: 48px;
  margin: 8px 0 12px;
  font-size: 14px;
}

.card-tags span {
  padding: 4px 8px;
}

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

.movie-card.compact .movie-card p,
.movie-card.compact p {
  min-height: 42px;
}

.page-hero {
  padding: 74px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.35), transparent 30%),
    linear-gradient(135deg, #0f172a, #1f2937 55%, #92400e);
}

.page-hero-inner h1 {
  max-width: 920px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero-inner p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.local-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.local-filter span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px 1fr;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-image-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 16px;
  background: #111827;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body h2 {
  margin-top: 8px;
}

.category-overview-body ul {
  columns: 2;
  margin: 16px 0;
  padding-left: 18px;
  color: var(--muted);
}

.category-overview-body a:hover {
  color: var(--accent);
}

.ranking-table-wrap {
  overflow: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.ranking-table th,
.ranking-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ranking-table th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
}

.ranking-table td:first-child {
  color: var(--accent);
  font-weight: 900;
}

.ranking-table a {
  font-weight: 800;
}

.ranking-table a:hover {
  color: var(--accent);
}

.search-page-form {
  max-width: 720px;
  margin-top: 26px;
  display: flex;
  gap: 10px;
}

.detail-hero {
  padding: 34px 0 54px;
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.24), transparent 32%),
    linear-gradient(135deg, #0f172a, #111827 70%);
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fcd34d;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.38);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: #fff;
  background: rgba(2, 6, 23, 0.48);
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.play-overlay:hover {
  background: rgba(2, 6, 23, 0.32);
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.28);
  font-size: 28px;
  padding-left: 4px;
}

.play-overlay strong {
  font-size: 22px;
}

.play-overlay small {
  color: rgba(255, 255, 255, 0.78);
}

.detail-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  object-fit: cover;
  background: #111827;
}

.detail-meta-list {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.detail-panel h1 {
  margin: 12px 0 10px;
  font-size: 34px;
  line-height: 1.12;
}

.detail-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.detail-tags span {
  padding: 6px 10px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.article-card {
  padding: 28px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.article-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.info-grid-card {
  grid-column: 1 / -1;
}

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

.info-grid div {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-soft);
}

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

.info-grid dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 80px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  padding-top: 54px;
  padding-bottom: 54px;
}

.footer-brand h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
}

.footer-brand p {
  max-width: 680px;
  margin: 0;
  color: #9ca3af;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a:hover {
  color: #f59e0b;
}

.footer-grid p {
  margin: 0;
  color: #9ca3af;
}

@media (max-width: 1180px) {
  .movie-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: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-carousel {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 68px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    margin: 0 auto;
  }

  .quick-search-panel,
  .detail-layout,
  .detail-content,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-layout {
    gap: 24px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 19px;
  }

  .quick-search-panel,
  .content-section,
  .page-hero-inner,
  .detail-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .hero-controls {
    width: calc(100% - 32px);
  }

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

  .card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .category-overview-body ul {
    columns: 1;
  }

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

  .detail-panel h1 {
    font-size: 28px;
  }
}
