:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --gray: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
  --warm: #fff7ed;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--slate);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  font-size: 14px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: #374151;
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-dark);
  background: #fffbeb;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  overflow: visible;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 16px;
  border-radius: 999px 0 0 999px;
}

.header-search button,
.wide-search button {
  border: 0;
  color: #ffffff;
  background: var(--amber);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.header-search button:hover,
.wide-search button:hover,
.primary-button:hover {
  background: var(--amber-dark);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

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

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: #374151;
}

.main-visual {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #000000;
}

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

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

.visual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.12));
}

.visual-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: 24px;
  bottom: 10%;
  max-width: 820px;
  color: #ffffff;
}

.visual-tags,
.detail-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.visual-tags a,
.visual-tags span,
.tag,
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.visual-tags a,
.category-pill {
  color: #ffffff;
  background: var(--amber);
}

.visual-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.visual-content h1 {
  margin: 18px 0 12px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.visual-content p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(16px, 1.7vw, 22px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

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

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

.primary-button {
  color: #ffffff;
  background: var(--amber);
  box-shadow: 0 18px 32px rgba(245, 158, 11, 0.35);
}

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

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.visual-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 34px;
  transition: 0.2s ease;
}

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

.visual-arrow.prev {
  left: 18px;
}

.visual-arrow.next {
  right: 18px;
}

.visual-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.visual-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: 0.2s ease;
}

.visual-dots button.is-active {
  width: 34px;
  background: var(--amber);
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 20px;
}

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

.section-heading.centered {
  display: block;
  text-align: center;
}

.section-heading p {
  margin: 0 0 4px;
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.channel-head h1,
.detail-main h1 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.04em;
}

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

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

.search-panel {
  padding-bottom: 32px;
}

.wide-search {
  position: relative;
  max-width: 860px;
  margin: 24px auto 0;
  display: flex;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.wide-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  border-radius: 999px;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 70;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: block;
}

.search-results a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
}

.search-results a:last-child {
  border-bottom: 0;
}

.search-results strong {
  display: block;
  color: #111827;
}

.search-results span {
  color: var(--gray);
  font-size: 13px;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #334155);
}

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

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

.score,
.duration {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.score {
  left: 12px;
  background: rgba(245, 158, 11, 0.92);
}

.duration {
  right: 12px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-card:hover strong {
  color: var(--amber-dark);
}

.meta-line,
.card-desc {
  color: var(--gray);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.category-pill {
  align-self: flex-start;
  padding: 4px 10px;
  color: #92400e;
  background: #fef3c7;
}

.warm-band {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.soft-bg {
  background: #f8fafc;
}

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

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

.category-tile {
  min-height: 150px;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #1f2937, #111827 46%, #92400e);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  color: #fde68a;
  font-weight: 500;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  min-width: 310px;
  scroll-snap-align: start;
}

.channel-head {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.channel-head.amber {
  background: linear-gradient(135deg, #111827, #78350f);
}

.channel-head > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 20px;
}

.channel-head p {
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.channel-head h1 {
  color: #ffffff;
  font-size: clamp(42px, 6vw, 72px);
}

.channel-head span {
  display: block;
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  background: #ffffff;
}

.rank-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-card img {
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.rank-card strong,
.rank-card em,
.rank-card small {
  display: block;
}

.rank-card strong {
  color: #111827;
  font-size: 17px;
}

.rank-card em {
  color: var(--amber-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.rank-card small {
  color: var(--gray);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.rank-num {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 2;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  font-weight: 900;
}

.player-shell {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.player-wrap {
  padding-top: 28px;
  padding-bottom: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #d1d5db;
  font-size: 14px;
}

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

.watch-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.watch-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-cover span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.42);
  font-size: 32px;
}

.watch-player.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.watch-player:hover .player-controls,
.watch-player.is-playing .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.detail-main h1 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-meta {
  margin: 18px 0 28px;
  color: #4b5563;
  font-weight: 800;
}

.tag {
  color: #374151;
  background: #f3f4f6;
}

.content-card,
.side-card {
  margin-bottom: 22px;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.content-card.warm {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  white-space: pre-wrap;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
  background: #111827;
}

.side-card dl {
  margin: 18px 0 0;
}

.side-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.side-card div:last-child {
  border-bottom: 0;
}

.side-card dt {
  color: var(--gray);
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
  text-align: right;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 20px 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

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

.site-footer p {
  max-width: 560px;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 18px;
}

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  text-align: center;
}

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

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

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

  .header-search {
    flex: 1;
    min-width: 180px;
  }

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

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

  .header-search {
    order: 3;
    width: 100%;
  }

  .main-visual {
    min-height: 72vh;
  }

  .visual-content {
    left: 20px;
    bottom: 68px;
  }

  .visual-content h1 {
    font-size: 38px;
  }

  .visual-arrow {
    display: none;
  }

  .section-wrap {
    padding: 48px 16px;
  }

  .section-heading {
    display: block;
  }

  .wide-search,
  .filter-panel {
    border-radius: 22px;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .wide-search {
    display: grid;
  }

  .three-col,
  .four-col,
  .category-grid,
  .category-grid.large,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 110px 1fr;
  }

  .rank-card img {
    width: 110px;
  }

  .player-controls {
    padding: 12px;
    gap: 8px;
  }

  .player-controls button {
    padding: 7px 10px;
    font-size: 13px;
  }
}
