:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --white: #ffffff;
  --ink: #2b1704;
  --shadow-sm: 0 1px 2px rgba(120, 53, 15, 0.08);
  --shadow-md: 0 8px 24px rgba(120, 53, 15, 0.12);
  --shadow-xl: 0 24px 48px rgba(120, 53, 15, 0.22);
  --radius: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 52%, var(--amber-100));
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.35);
}

.brand-text,
.footer-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-600), #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--amber-800);
  font-weight: 650;
  white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.text-link:hover,
.card-title:hover {
  color: var(--amber-600);
}

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

.nav-search input,
.mobile-panel input,
.home-search-panel input,
.search-page-form input,
.filter-tools input {
  width: min(260px, 34vw);
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--amber-200);
  background: rgba(255, 255, 255, 0.86);
  color: var(--amber-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.home-search-panel input:focus,
.search-page-form input:focus,
.filter-tools input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.nav-search button,
.mobile-panel button,
.home-search-panel button,
.search-page-form button,
.filter-tools button,
.primary-btn,
.section-more a {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  color: #fff;
  background: var(--amber-500);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-panel button:hover,
.home-search-panel button:hover,
.search-page-form button:hover,
.primary-btn:hover,
.section-more a:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(217, 119, 6, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--amber-800);
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  width: 100%;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.04));
}

.hero-content {
  position: absolute;
  left: 50%;
  right: 24px;
  bottom: 72px;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--amber-500);
  color: #fff;
  font-weight: 700;
}

.hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 820px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.48);
}

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

.ghost-btn {
  border-radius: 999px;
  padding: 11px 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--amber-500);
}

.home-search-panel,
.page-hero,
.content-section,
.category-overview-card {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-panel {
  margin-top: 36px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.home-search-panel h2,
.page-hero h1,
.section-heading h2,
.category-overview-head h2,
.detail-card h1,
.detail-card h2,
.side-panel h2 {
  color: var(--amber-900);
}

.home-search-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 44px);
}

.home-search-panel p,
.page-hero p,
.section-heading p,
.category-overview-head p,
.detail-card p,
.footer-grid p {
  color: var(--amber-700);
  line-height: 1.75;
}

.home-search-panel form,
.search-page-form {
  display: flex;
  gap: 10px;
}

.home-search-panel input,
.search-page-form input {
  width: min(420px, 52vw);
}

.content-section {
  padding: 52px 0 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 22px;
}

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

.section-heading p {
  margin: 3px 0 0;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-cover,
.large-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
}

.card-cover {
  height: 220px;
}

.card-cover img,
.large-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-cover img,
.movie-card:hover .large-cover img,
.side-related:hover img {
  transform: scale(1.1);
}

.cover-shade,
.large-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade,
.movie-card:hover .large-shade {
  opacity: 1;
}

.play-badge,
.large-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(245, 158, 11, 0.94);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  color: var(--amber-900);
  font-weight: 800;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--amber-700);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-tags span,
.detail-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 12px;
}

.card-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--amber-600);
  font-size: 13px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.featured-band,
.weekly-band {
  padding: 42px 28px;
  border-radius: 32px;
  background: linear-gradient(120deg, var(--amber-100), var(--orange-100));
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.category-tile {
  padding: 20px;
}

.category-tile strong {
  display: block;
  color: var(--amber-900);
  font-size: 22px;
}

.category-tile span {
  display: inline-flex;
  margin: 8px 0;
  color: var(--amber-600);
  font-weight: 700;
}

.category-tile p {
  min-height: 5.2em;
  margin: 0 0 14px;
  color: var(--amber-700);
  line-height: 1.7;
}

.category-tile div {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--amber-800);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.rank-row span {
  color: var(--amber-500);
  font-size: 24px;
  font-weight: 900;
}

.rank-row img {
  width: 70px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-row strong {
  color: var(--amber-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: var(--amber-600);
  font-style: normal;
  font-size: 13px;
}

.section-more {
  margin-top: 24px;
  text-align: center;
}

.filter-tools {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-tools input {
  width: min(360px, 100%);
}

.filter-tools div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-tools button {
  padding: 9px 14px;
  color: var(--amber-700);
  background: #fff;
  border: 1px solid var(--amber-200);
}

.filter-tools button.is-active,
.filter-tools button:hover {
  color: #fff;
  background: var(--amber-500);
}

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

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.movie-card-horizontal .card-cover {
  height: 100%;
  min-height: 188px;
}

.masonry-grid {
  columns: 3 280px;
  column-gap: 22px;
}

.masonry-grid .movie-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
}

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

.large-cover {
  height: 420px;
  border-radius: var(--radius);
}

.large-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18) 52%, transparent);
}

.large-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
}

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

.large-info strong {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.25;
}

.large-info em {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  line-height: 1.6;
}

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

.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-700);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-800);
  font-weight: 700;
}

.small-hero {
  margin-top: 26px;
  padding: 42px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--amber-100), rgba(255, 255, 255, 0.88));
  box-shadow: var(--shadow-md);
}

.small-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.small-hero p {
  max-width: 860px;
  margin: 0;
  font-size: 17px;
}

.category-overview-card {
  margin-top: 28px;
  padding: 26px;
}

.category-overview-head {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.category-overview-head p {
  margin: 0;
}

.text-link {
  color: var(--amber-600);
  font-weight: 800;
  white-space: nowrap;
}

.search-page-form {
  margin-top: 24px;
}

.search-summary {
  margin-bottom: 18px;
  color: var(--amber-800);
  font-weight: 700;
}

.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-card,
.side-panel {
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.player-card {
  padding: 12px;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-500);
  font-size: 32px;
  box-shadow: 0 18px 30px rgba(245, 158, 11, 0.35);
}

.player-cover strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.player-error {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 14px 20px;
  border-radius: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  transform: translate(-50%, -50%);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
}

.detail-card h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 14px;
  font-size: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--amber-700);
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--amber-50);
}

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

.detail-side {
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 88px;
  padding: 20px;
}

.side-related {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}

.side-related img {
  width: 112px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.side-related span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--amber-900);
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-related em {
  display: block;
  grid-column: 2;
  margin-top: -18px;
  color: var(--amber-600);
  font-style: normal;
  font-size: 12px;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.74), var(--orange-100));
  border-top: 1px solid rgba(245, 158, 11, 0.16);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--amber-900);
  font-size: 18px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  color: var(--amber-700);
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
  color: var(--amber-600);
  font-size: 14px;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    padding: 0 16px;
  }

  .brand-text,
  .footer-logo {
    font-size: 24px;
  }

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

  .hero-content {
    bottom: 78px;
  }

  .hero-arrow {
    top: auto;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .home-search-panel,
  .category-overview-head,
  .filter-tools {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .home-search-panel {
    display: grid;
  }

  .home-search-panel form,
  .search-page-form,
  .mobile-panel form {
    flex-direction: column;
  }

  .home-search-panel input,
  .search-page-form input {
    width: 100%;
  }

  .movie-grid,
  .large-grid,
  .category-grid,
  .compact-grid,
  .ranking-strip {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .card-cover {
    height: 220px;
  }

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .rank-row em {
    display: none;
  }

  .small-hero,
  .category-overview-card,
  .detail-card {
    padding: 24px;
  }

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