:root {
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --amber: #f59e0b;
  --dark: #111827;
  --muted: #6b7280;
  --light: #fff7ed;
  --border: #e5e7eb;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f9fafb;
  color: #1f2937;
  font-family: Inter, -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;
}

.narrow-container {
  width: min(920px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.28);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

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

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}

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

.brand-text strong {
  font-size: 24px;
  letter-spacing: 0.04em;
}

.brand-text small {
  opacity: 0.86;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  font-weight: 700;
}

.desktop-nav a,
.nav-dropdown button {
  color: #ffffff;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 0;
}

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  min-width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: var(--shadow);
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

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

.nav-dropdown-menu a:hover {
  color: var(--red);
  background: #fff7ed;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 8px 7px 16px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.site-search input {
  width: 180px;
  color: #ffffff;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.site-search button,
.search-page-form button {
  border: 0;
  color: var(--red);
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 800;
  cursor: pointer;
}

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

.mobile-panel {
  padding: 0 16px 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  padding: 12px 0 0;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-search {
  margin: 10px 0;
}

.hero {
  color: #ffffff;
  background: #111827;
}

.hero-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.45), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.16)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.65), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 90px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h2 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(26px, 4vw, 46px);
}

.hero p {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  opacity: 0.94;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-list span,
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 12px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.35);
}

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

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

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

.hero-dot.is-active {
  width: 36px;
  background: #ffffff;
}

.section {
  padding: 76px 0;
}

.section:nth-of-type(even) {
  background: #ffffff;
}

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-card h1,
.detail-card h2 {
  margin: 0;
  color: #1f2937;
  font-weight: 900;
  letter-spacing: -0.035em;
}

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

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

.section-more {
  color: var(--red);
  background: #fff7ed;
}

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

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

.poster-card,
.wide-link {
  display: grid;
  overflow: hidden;
  height: 100%;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-card:hover,
.wide-link:hover,
.category-overview-card a:hover,
.rank-row a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.poster-frame img,
.wide-poster img,
.category-thumbs img,
.rank-row img,
.detail-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-card:hover img,
.wide-link:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.poster-frame img,
.wide-poster img,
.category-thumbs img {
  transition: transform 0.45s ease;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 58%);
}

.watch-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: 0.25s ease;
}

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

.card-body {
  display: grid;
  gap: 7px;
  padding: 15px;
}

.card-body strong,
.wide-body strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.card-body small,
.wide-body small {
  color: var(--muted);
}

.card-summary,
.wide-body span:last-child {
  color: #4b5563;
  font-size: 14px;
}

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9a3412;
  font-size: 12px;
}

.meta-line b,
.meta-line em {
  border-radius: 999px;
  padding: 4px 8px;
  background: #ffedd5;
  font-style: normal;
}

.wide-link {
  grid-template-columns: 190px 1fr;
}

.wide-poster {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.wide-body {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.category-section {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

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

.category-tile,
.category-overview-card a {
  display: grid;
  min-height: 168px;
  align-content: end;
  gap: 8px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.2);
  transition: 0.25s ease;
}

.category-tile strong,
.category-overview-card strong {
  font-size: 24px;
  font-weight: 900;
}

.category-tile span,
.category-overview-card p {
  margin: 0;
  opacity: 0.92;
}

.tile-1,
.category-overview-card.tile-1 a {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tile-2,
.category-overview-card.tile-2 a {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.tile-3,
.category-overview-card.tile-3 a {
  background: linear-gradient(135deg, #ef4444, #fb923c);
}

.page-hero {
  padding: 74px 0;
}

.gradient-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(90deg, var(--orange), var(--red), var(--pink));
}

.gradient-hero h1 {
  color: #ffffff;
  margin-top: 10px;
  font-size: clamp(38px, 6vw, 62px);
}

.gradient-hero p {
  max-width: 720px;
  margin: 15px 0 0;
  font-size: 19px;
  opacity: 0.92;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 700;
  opacity: 0.86;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb.dark {
  color: rgba(255, 255, 255, 0.78);
}

.category-overview-card a {
  min-height: 260px;
  position: relative;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.category-thumbs img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin-bottom: 30px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.filter-bar label {
  display: grid;
  min-width: 220px;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

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

.filter-bar input:focus,
.filter-bar select:focus,
.search-page-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-page-form input {
  border-radius: 999px;
  font-size: 18px;
}

.search-page-form button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  padding-inline: 28px;
}

.compact-filter {
  margin-bottom: 0;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 56px 86px 1fr auto;
  gap: 16px;
  align-items: center;
  border-radius: 20px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
  transition: 0.25s ease;
}

.rank-no {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-row img {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #fed7aa;
}

.rank-info {
  display: grid;
  gap: 5px;
}

.rank-info strong {
  color: #111827;
  font-size: 18px;
}

.rank-info small,
.rank-info em {
  color: var(--muted);
  font-style: normal;
}

.rank-score {
  color: #d97706;
  font-size: 22px;
  font-weight: 900;
}

.player-shell {
  padding: 30px 0 42px;
  background: #050505;
}

.stream-player {
  position: relative;
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.video-el {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5));
  transition: 0.25s ease;
}

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

.player-play {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.93);
  font-size: 34px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.player-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  opacity: 0;
  transition: 0.2s ease;
}

.stream-player:hover .player-controls,
.stream-player:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  cursor: pointer;
}

.detail-section {
  background: #f9fafb;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

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

.detail-card,
.side-card {
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.detail-card h1 {
  font-size: clamp(32px, 5vw, 50px);
}

.detail-card h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.detail-card p {
  margin: 0;
  color: #374151;
  white-space: pre-wrap;
}

.lead-text {
  margin-top: 12px !important;
  font-size: 19px;
}

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

.detail-meta a,
.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.detail-side > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
  box-shadow: var(--shadow);
}

.side-card h2 {
  margin: 0 0 12px;
}

.side-card p {
  margin: 8px 0;
  color: #4b5563;
}

.primary-button.full {
  width: 100%;
  margin-top: 16px;
}

.related-section {
  background: #ffffff;
}

.cta-band {
  padding: 74px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
}

.cta-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 50px);
}

.cta-inner p {
  max-width: 680px;
  margin: 14px 0 28px;
  font-size: 19px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid p {
  max-width: 440px;
  margin: 16px 0 0;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

.footer-grid a:hover {
  color: #fed7aa;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

[hidden] {
  display: none !important;
}

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

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

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .header-inner > .site-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-stage {
    min-height: 580px;
  }

  .hero-content {
    padding: 92px 0 82px;
  }

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

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

  .detail-side {
    position: static;
  }

  .rank-row a {
    grid-template-columns: 48px 70px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 52px 0;
  }

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

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

  .wide-link {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    aspect-ratio: 16 / 10;
  }

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

  .hero h2 {
    font-size: 26px;
  }

  .hero-actions {
    display: grid;
  }

  .search-page-form {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .rank-row a {
    grid-template-columns: 42px 64px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-info em {
    display: none;
  }

  .player-controls {
    justify-content: center;
  }
}
