:root {
  --bg: #fff8ed;
  --panel: #ffffff;
  --panel-soft: #fffbf2;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3dfc2;
  --amber: #d97706;
  --amber-2: #f59e0b;
  --orange: #ea580c;
  --dark: #0f172a;
  --shadow: 0 18px 45px rgba(120, 72, 0, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem), var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 32%, rgba(251, 191, 36, 0.08));
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
}

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark,
.footer-brand span {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-2), var(--orange));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.32);
}

.brand-name {
  font-size: 21px;
  color: #111827;
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #4b5563;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.category-tabs a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.category-tabs a:hover {
  color: var(--amber);
}

.nav-cta,
.primary-button,
.search-mini button,
.filter-top button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.nav-cta {
  padding: 11px 18px;
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff3dc;
  color: #92400e;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 14px 20px 22px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.75s ease, transform 5s ease;
  transform: scale(1.03);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.6) 48%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: relative;
  max-width: 1240px;
  height: 600px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.meta-row,
.tag-row,
.hero-actions,
.filter-top,
.section-heading,
.scroll-actions,
.category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta span,
.meta-row span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-actions {
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.nav-cta:hover,
.search-mini button:hover,
.filter-top button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(217, 119, 6, 0.35);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-2);
}

.search-band,
.section-shell,
.trend-shell,
.page-hero,
.detail-layout {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 4;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  gap: 24px;
  align-items: center;
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  color: #1f2937;
  letter-spacing: -0.03em;
}

.search-band p,
.section-heading p,
.page-hero p,
.detail-block p,
.one-line,
.side-card p {
  color: var(--muted);
  line-height: 1.75;
}

.search-mini,
.filter-top {
  display: flex;
  gap: 10px;
}

.search-mini input,
.filter-top input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  background: #ffffff;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-mini input:focus,
.filter-top input:focus {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.search-mini button,
.filter-top button {
  padding: 0 22px;
}

.section-shell,
.trend-shell {
  padding: 70px 20px 0;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 28px;
}

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

.section-heading a {
  color: var(--amber);
  font-weight: 850;
}

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

.category-tile {
  min-height: 150px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -50px;
  top: -50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.category-tile:hover,
.category-overview:hover,
.movie-card:hover {
  transform: translateY(-5px);
}

.category-tile span {
  position: relative;
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  position: relative;
  margin-top: 10px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.landscape-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.landscape-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.landscape-media img,
.poster-wrap img,
.side-card > img,
.overview-posters img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.landscape-card:hover img,
.poster-card:hover img,
.category-overview:hover img {
  transform: scale(1.08);
}

.media-mask,
.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.landscape-card:hover .media-mask,
.poster-card:hover .poster-glow {
  opacity: 1;
}

.play-float,
.play-badge,
.play-large {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.95);
  border-radius: 999px;
}

.play-float {
  position: absolute;
  width: 60px;
  height: 60px;
  left: 50%;
  top: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.landscape-body {
  display: block;
  padding: 18px;
}

.landscape-body strong,
.poster-info strong,
.rank-text strong {
  display: block;
  color: #1f2937;
  font-weight: 900;
  line-height: 1.35;
}

.landscape-body span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 12px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.landscape-body em {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
}

.trend-shell {
  max-width: 1280px;
  margin-top: 70px;
  padding-top: 46px;
  padding-bottom: 46px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 237, 213, 0.86));
  box-shadow: var(--shadow);
}

.scroll-actions button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #92400e;
  font-size: 28px;
  box-shadow: 0 12px 24px rgba(120, 72, 0, 0.12);
  cursor: pointer;
}

.carousel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 210px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

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

.poster-card {
  display: block;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.18);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-info {
  display: block;
  padding: 12px 4px 0;
}

.poster-info strong {
  display: -webkit-box;
  min-height: 43px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
}

.poster-info small,
.rank-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.compact-card .poster-info strong {
  font-size: 14px;
}

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

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

.rank-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(120, 72, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 32px rgba(120, 72, 0, 0.16);
}

.rank-number {
  color: var(--amber);
  font-weight: 950;
  font-size: 24px;
  text-align: center;
}

.rank-item img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.rank-text {
  min-width: 0;
}

.rank-text strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.page-hero {
  margin-top: 34px;
  padding: 58px 42px;
  border-radius: 34px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.38), transparent 24rem), linear-gradient(135deg, #111827, #78350f 68%, #92400e);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-top: 18px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
}

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

.crumb {
  max-width: 1240px;
  margin: 26px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.crumb a:hover {
  color: var(--amber);
}

.category-tabs {
  margin-top: 24px;
}

.category-tabs a {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 800;
}

.search-tabs a {
  color: #92400e;
  background: #ffedd5;
}

.filter-panel {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.filter-top {
  margin-bottom: 26px;
}

.search-full input {
  min-height: 52px;
}

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

.category-overview {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.overview-posters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.overview-posters img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: #111827;
}

.overview-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-body strong {
  font-size: 24px;
  margin-bottom: 10px;
}

.overview-body small {
  color: var(--muted);
  line-height: 1.7;
}

.detail-main {
  padding-bottom: 70px;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.site-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050816;
}

.video-el {
  width: 100%;
  height: 100%;
  display: block;
  background: #050816;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  background: #050816;
  cursor: pointer;
  overflow: hidden;
}

.site-player.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
}

.play-large {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(217, 119, 6, 0.42);
}

.detail-card {
  margin-top: 24px;
  padding: 30px;
}

.detail-card h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.detail-card .meta-row {
  margin: 18px 0 20px;
}

.detail-card .meta-row span,
.tag-row .tag {
  color: #92400e;
  background: #ffedd5;
}

.tag-row {
  margin-bottom: 18px;
}

.one-line {
  margin: 0 0 26px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff7ed;
  color: #4b5563;
  font-size: 17px;
  font-weight: 650;
}

.detail-block {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-block p {
  margin-top: 0;
  font-size: 16px;
}

.info-table {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 18px;
}

.info-table span {
  color: var(--muted);
}

.info-table strong {
  color: #1f2937;
}

.no-padding {
  padding-left: 0;
  padding-right: 0;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 18px;
}

.side-card > img {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: #111827;
}

.side-card h2 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.primary-button.full {
  width: 100%;
  margin-top: 14px;
}

.compact-side {
  display: grid;
  gap: 12px;
}

.compact-side h3 {
  margin: 0;
}

.compact-side a {
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
}

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

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.footer-grid p {
  max-width: 560px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid h3 {
  margin-top: 0;
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.movie-card.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .landscape-grid,
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero,
  .hero-content {
    min-height: 560px;
    height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.88));
  }

  .search-band {
    margin: 20px 16px 0;
    grid-template-columns: 1fr;
  }

  .section-shell,
  .trend-shell {
    padding-top: 52px;
  }

  .landscape-grid,
  .rank-grid,
  .rank-list,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero {
    margin: 22px 16px 0;
    padding: 42px 24px;
  }

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

@media (max-width: 560px) {
  .nav-shell {
    min-height: 64px;
  }

  .brand-name {
    font-size: 18px;
  }

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

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

  .search-mini,
  .filter-top {
    flex-direction: column;
  }

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

  .overview-posters {
    display: none;
  }

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

  .detail-card {
    padding: 22px;
  }

  .rank-item {
    grid-template-columns: 38px 60px 1fr;
  }

  .rank-item img {
    width: 60px;
    height: 82px;
  }
}
