* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --panel-soft: #fffbeb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #92400e;
  --brand-dark: #78350f;
  --brand-mid: #c2410c;
  --brand-light: #f59e0b;
  --gold: #fbbf24;
  --shadow: 0 16px 40px rgba(146, 64, 14, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #fff7ed 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f 0%, #c2410c 52%, #78350f 100%);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: #78350f;
  background: #fff7ed;
  box-shadow: inset 0 0 0 3px rgba(251, 191, 36, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: #fde68a;
  font-size: 12px;
}

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

.desktop-nav > a,
.nav-dropdown > button {
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > button:hover {
  color: #fde68a;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  display: grid;
  width: 230px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  color: #374151;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #374151;
}

.nav-dropdown-panel a:hover {
  background: #ffedd5;
  color: #9a3412;
}

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

.header-search input,
.mobile-panel input {
  width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
  color: #ffedd5;
}

.header-search button,
.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #78350f;
  background: #fef3c7;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(120, 53, 15, 0.98);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel-inner {
  display: grid;
  gap: 12px;
  padding: 16px 0 20px;
}

.mobile-panel a,
.mobile-channel span {
  color: #ffffff;
  font-weight: 650;
}

.mobile-channel {
  display: grid;
  gap: 8px;
}

.mobile-channel a {
  padding-left: 16px;
  color: #fde68a;
  font-weight: 500;
}

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

.mobile-panel input {
  flex: 1;
  width: auto;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 12%, rgba(251, 191, 36, 0.36), transparent 30%), linear-gradient(120deg, #78350f 0%, #c2410c 48%, #92400e 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
}

.hero-glow.one {
  left: -90px;
  top: 120px;
  width: 260px;
  height: 260px;
  background: rgba(251, 191, 36, 0.2);
}

.hero-glow.two {
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  background: rgba(254, 243, 199, 0.18);
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(253, 230, 138, 0.5);
  border-radius: 999px;
  padding: 6px 12px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 46px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-copy h1 {
  max-width: 750px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #ffedd5;
  font-size: 18px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #78350f;
  background: #fef3c7;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  box-shadow: 0 28px 60px rgba(67, 20, 7, 0.38);
}

.hero-poster img,
.card-cover img,
.detail-poster img,
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-play,
.play-badge,
.detail-poster span {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.hero-play {
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  font-size: 24px;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.hero-dots {
  display: inline-flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: #fde68a;
}

.hero-search {
  display: flex;
  width: min(520px, 100%);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 16px;
  color: #ffffff;
  background: transparent;
  outline: none;
}

.hero-search input::placeholder {
  color: #ffedd5;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #78350f;
  background: #fef3c7;
  font-weight: 800;
  cursor: pointer;
}

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

.content-section.category-preview {
  padding-top: 24px;
}

.soft-panel {
  background: rgba(255, 237, 213, 0.65);
}

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

.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

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

.section-heading > a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 15px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.58));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-cover img {
  transition: transform 0.45s ease;
}

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

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

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

.card-year {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(120, 53, 15, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.card-meta a,
.detail-meta span,
.detail-meta a,
.rank-meta span,
.rank-meta a {
  border-radius: 999px;
  padding: 4px 8px;
  background: #ffedd5;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-card h2 a:hover,
.category-samples a:hover {
  color: #c2410c;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags span {
  color: #92400e;
  background: #fef3c7;
}

.compact-card .card-body {
  padding: 14px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: start;
}

.rank-list,
.side-rank {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li a,
.side-rank li a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(146, 64, 14, 0.08);
}

.side-rank li a {
  grid-template-columns: minmax(0, 1fr) auto;
}

.rank-list strong {
  color: #c2410c;
  font-size: 18px;
}

.rank-list span,
.side-rank span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-list em,
.side-rank em {
  color: #9a3412;
  font-style: normal;
  font-size: 13px;
}

.channel-panel {
  border-radius: 24px;
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.channel-panel h2 {
  margin: 0 0 16px;
}

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

.channel-links a {
  display: grid;
  gap: 4px;
  border-radius: 15px;
  padding: 13px 14px;
  background: #fff7ed;
}

.channel-links span {
  color: #9a3412;
  font-weight: 800;
}

.channel-links small {
  color: var(--muted);
}

.page-main {
  min-height: 70vh;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background: linear-gradient(120deg, #78350f 0%, #c2410c 50%, #92400e 100%);
}

.compact-hero {
  padding: 48px 0;
}

.page-hero h1,
.detail-info h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

.page-hero p,
.detail-info .lead {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #fde68a;
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 170px;
  gap: 12px;
  margin-bottom: 24px;
  border-radius: 20px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(146, 64, 14, 0.09);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 11px 12px;
  color: #374151;
  background: #fff7ed;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

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

.category-card {
  border-radius: 22px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.1);
}

.category-title {
  color: #9a3412;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

.rank-stack {
  display: grid;
  gap: 16px;
}

.rank-card {
  display: grid;
  grid-template-columns: 64px 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.1);
}

.rank-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #c2410c, #f59e0b);
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: #ffedd5;
}

.rank-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.detail-hero {
  padding: 42px 0 56px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  background: #ffedd5;
  box-shadow: 0 28px 60px rgba(67, 20, 7, 0.36);
}

.detail-poster span {
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  font-size: 25px;
}

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

.detail-tags span {
  color: #92400e;
  background: #fef3c7;
}

.detail-info .btn {
  margin-top: 24px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #92400e;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.player-cover span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  font-size: 34px;
}

.player-box.is-playing .player-cover {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.detail-content article,
.detail-content aside {
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.1);
}

.detail-content h2 {
  margin: 0 0 14px;
  color: #1f2937;
}

.detail-content p {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 17px;
}

.genre-tags {
  margin-top: 8px;
}

.site-footer {
  margin-top: 44px;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f 0%, #9a3412 50%, #78350f 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #ffedd5;
}

.site-footer a {
  display: inline-block;
  margin: 0 12px 8px 0;
  color: #fde68a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 15px 16px;
  color: #ffedd5;
  text-align: center;
}

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

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

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

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

@media (max-width: 820px) {
  .hero-section {
    padding-top: 44px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 26px;
  }

  .hero-poster {
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .hero-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    width: 100%;
  }

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

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

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

  .rank-thumb {
    display: none;
  }

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

  .detail-poster {
    width: min(300px, 100%);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-info .lead {
    font-size: 16px;
  }

  .hero-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .filter-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .detail-content article,
  .detail-content aside {
    padding: 18px;
  }
}
