:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 24px;
}

* {
  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", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 54%, #f3f4f6 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.header-shell,
.footer-shell,
.hero-shell,
.content-section,
.detail-shell,
.player-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-shell {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.32);
  font-size: 18px;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 700;
  border-radius: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--orange);
  background: #fff7ed;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #374151;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-link {
  padding: 12px 14px;
}

.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img,
.detail-backdrop img,
.page-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop span,
.detail-backdrop span,
.page-hero > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.25);
  filter: blur(10px);
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  align-items: center;
  gap: 44px;
  padding: 90px 0;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-kicker {
  color: #fff;
  background: rgba(234, 88, 12, 0.9);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  margin: 0 0 12px;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.12;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: #e5e7eb;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.85;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

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

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 18px 35px rgba(234, 88, 12, 0.34);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--orange-dark);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 16px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button {
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 800;
  cursor: pointer;
}

.hero-panel {
  align-self: end;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-panel p {
  margin: 0 0 12px;
  font-weight: 800;
}

.hero-mini {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.hero-mini img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hero-mini strong {
  overflow: hidden;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-mini small {
  color: #d1d5db;
}

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

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

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-link {
  color: var(--orange);
  padding: 10px 16px;
  background: #fff7ed;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(234, 88, 12, 0.28);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.72) 100%);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.82);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

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

.rank-badge,
.meta-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  min-width: 34px;
  padding: 6px 9px;
  text-align: center;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.meta-badge {
  right: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.card-body strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.card-desc {
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-meta em {
  font-style: normal;
  font-size: 12px;
  color: #9a3412;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 54%, #fffbeb);
  border: 1px solid rgba(251, 146, 60, 0.24);
  box-shadow: 0 14px 35px rgba(234, 88, 12, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(234, 88, 12, 0.16);
}

.category-card strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 24px;
}

.category-card span:not(.category-glow) {
  position: relative;
  z-index: 1;
  color: #6b7280;
  line-height: 1.65;
}

.category-card em {
  position: relative;
  z-index: 1;
  color: var(--orange);
  font-style: normal;
  font-weight: 800;
}

.category-glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.12);
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.38), transparent 32%), linear-gradient(135deg, #111827, #1f2937 55%, #7c2d12);
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.slim-hero {
  min-height: 300px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.category-hero .primary-button {
  margin-top: 26px;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid var(--line);
}

.search-box span {
  color: var(--orange);
  font-weight: 900;
  font-size: 20px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #6b7280;
  background: #f3f4f6;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #fff;
  background: var(--orange);
  transform: translateY(-1px);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.detail-shell {
  position: relative;
  z-index: 1;
  padding: 44px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: #e5e7eb;
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 18px;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.lead-text {
  max-width: 820px;
  margin: 0;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.85;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 32px;
  padding: 6px 12px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.player-section {
  background: #0b0f19;
  padding: 58px 0;
}

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

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

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

.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-frame.is-playing .video-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 24px 50px rgba(234, 88, 12, 0.38);
  font-size: 34px;
}

.watch-copy {
  color: #fff;
}

.watch-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.watch-copy p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.8;
}

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

.article-card {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.07);
}

.article-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  border-color: rgba(234, 88, 12, 0.3);
}

.ranking-num {
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ranking-info strong {
  color: var(--ink);
  font-size: 17px;
}

.ranking-info em,
.ranking-meta {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.ranking-info em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-shell {
  padding: 46px 0 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer-main p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-main h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
}

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

.footer-links a {
  color: #4b5563;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

[data-card].hidden {
  display: none;
}

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

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

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

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

  .hero-shell,
  .detail-grid,
  .footer-main,
  .detail-text {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    padding: 70px 0 40px;
  }

  .hero-panel {
    align-self: stretch;
  }

  .detail-poster {
    max-width: 340px;
  }

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

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

  .ranking-meta {
    grid-column: 3;
  }
}

@media (max-width: 620px) {
  .header-shell,
  .footer-shell,
  .hero-shell,
  .content-section,
  .detail-shell,
  .player-shell,
  .page-hero > div {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-section {
    min-height: auto;
  }

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

  .hero-copy h2,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 30px;
  }

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

  .hero-search input,
  .hero-search button {
    width: 100%;
  }

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

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

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

  .detail-shell {
    padding-top: 28px;
  }

  .detail-meta span,
  .hero-meta span {
    font-size: 13px;
  }

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .ranking-row {
    grid-template-columns: 42px 68px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-row img {
    width: 68px;
    height: 52px;
  }

  .ranking-meta {
    font-size: 12px;
  }
}
