
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(135deg, #fffbeb 0%, #f8fafc 42%, #fff7ed 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #fde68a;
  box-shadow: 0 6px 22px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #92400e);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
  font-size: 13px;
}

.brand-text {
  font-size: 22px;
  color: transparent;
  background: linear-gradient(90deg, #b45309, #78350f);
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #b45309;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fef3c7;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #92400e;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #fde68a;
  padding: 12px 16px 18px;
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 10px 4px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 740px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  width: min(660px, 100%);
  margin: 22px 0 0;
  color: #e5e7eb;
  font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #fde68a;
  backdrop-filter: blur(8px);
}

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

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

.primary-btn {
  min-height: 46px;
  padding: 0 24px;
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.32);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: #b45309;
}

.ghost-btn {
  min-height: 46px;
  padding: 0 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

.ghost-btn.light {
  color: #ffffff;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: #fbbf24;
}

.intro-panel {
  margin-top: -48px;
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 60px rgba(120, 53, 15, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.32);
  backdrop-filter: blur(14px);
}

.intro-panel h1 {
  margin: 0 0 6px;
  color: #1f2937;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.16;
}

.intro-panel p {
  margin: 0;
  color: #6b7280;
}

.section-block {
  padding: 64px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
}

.section-link,
.text-link {
  color: #b45309;
}

.section-link:hover,
.text-link:hover {
  color: #92400e;
}

.category-grid,
.movie-grid,
.category-large-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile {
  min-height: 160px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fffbeb);
  border: 1px solid #fde68a;
  box-shadow: 0 18px 34px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.horizontal-card:hover,
.category-card-large:hover,
.ranking-row:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 24px 44px rgba(120, 53, 15, 0.16);
}

.category-tile span {
  display: block;
  color: #92400e;
  font-size: 20px;
  font-weight: 850;
}

.category-tile p {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 14px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #cbd5e1);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.duration-badge,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  background: rgba(217, 119, 6, 0.92);
}

.hover-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.86);
  transform: scale(0.72);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .hover-play {
  opacity: 1;
  transform: scale(1);
}

.movie-card-body {
  padding: 16px;
}

.movie-card h2,
.horizontal-card h2,
.ranking-info h2 {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.32;
}

.movie-card h2 a:hover,
.horizontal-card h2 a:hover,
.ranking-info h2 a:hover {
  color: #b45309;
}

.movie-card p,
.horizontal-card p,
.ranking-info p {
  margin: 8px 0 12px;
  color: #6b7280;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

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

.tag-row {
  margin-top: 12px;
}

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

.category-preview {
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.category-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.category-title-row h3 {
  margin: 0;
  flex: 1;
  font-size: 22px;
}

.category-title-row a {
  color: #b45309;
  font-weight: 800;
}

.category-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.horizontal-poster {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  background: #fef3c7;
}

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

.sub-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #0f172a 55%, #78350f);
  overflow: hidden;
}

.sub-hero .container {
  position: relative;
  z-index: 2;
  padding: 66px 0;
}

.sub-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
}

.sub-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #e5e7eb;
  font-size: 17px;
}

.category-hero {
  background-size: cover;
  background-position: center;
}

.sub-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.16));
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border-radius: 18px;
  overflow: hidden;
  background: #fef3c7;
}

.category-cover-stack img {
  width: 100%;
  height: 122px;
  object-fit: cover;
}

.category-card-body h2 {
  margin: 4px 0 10px;
  font-size: 24px;
}

.category-card-body p {
  color: #6b7280;
}

.filter-panel {
  position: sticky;
  top: 82px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  padding: 14px;
  margin-bottom: 28px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(120, 53, 15, 0.1);
  backdrop-filter: blur(12px);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fffbeb;
}

.filter-search span {
  color: #b45309;
  font-size: 20px;
}

.filter-search input,
.movie-filter {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2937;
}

.movie-filter {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 56px 96px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.ranking-index {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #d97706;
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: #fef3c7;
}

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

.detail-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f172a;
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62), rgba(15, 23, 42, 0.72));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 70px 0;
  color: #ffffff;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
  background: #fef3c7;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fcd34d;
  font-weight: 800;
  margin-bottom: 14px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 18px;
}

.detail-meta {
  margin-top: 20px;
}

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

.detail-tags span {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

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

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 24px;
  align-content: start;
}

.player-section,
.content-card,
.side-card {
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.player-section h2,
.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.86;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.16));
  cursor: pointer;
}

.play-mask.is-hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.42);
  font-size: 26px;
  padding-left: 4px;
}

.play-mask span:last-child {
  font-size: 18px;
  font-weight: 900;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.side-card dt {
  color: #94a3b8;
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #1f2937;
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: linear-gradient(90deg, #1e293b, #0f172a, #1e293b);
  border-top: 1px solid #334155;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

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

.footer-main p {
  max-width: 520px;
  color: #94a3b8;
}

.footer-block h2 {
  color: #ffffff;
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-block a:hover {
  color: #fbbf24;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid #334155;
  color: #94a3b8;
  text-align: center;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1120px) {
  .category-grid,
  .movie-grid,
  .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-large-grid,
  .category-preview-wrap {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-carousel {
    height: 560px;
  }

  .intro-panel,
  .section-heading,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-panel {
    display: grid;
  }

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

  .filter-panel {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: 220px;
  }

  .ranking-row {
    grid-template-columns: 44px 74px minmax(0, 1fr);
  }

  .ranking-row .text-link {
    grid-column: 3;
    justify-content: flex-start;
  }

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

@media (max-width: 520px) {
  .container,
  .header-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-content h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38));
  }

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

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

  .player-section,
  .content-card,
  .side-card {
    padding: 18px;
    border-radius: 22px;
  }
}
