* {
  box-sizing: border-box;
}

:root {
  --orange: #f97316;
  --red: #ef4444;
  --pink: #db2777;
  --blue: #0ea5e9;
  --green: #10b981;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

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: var(--text);
  background: #f7f8fb;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

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

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 650;
  transition: background 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  flex-direction: column;
  gap: 4px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(135deg, var(--orange), var(--red) 52%, var(--pink));
  padding: 78px 0 86px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  filter: blur(2px);
}

.hero::before {
  right: -120px;
  top: -160px;
}

.hero::after {
  left: -160px;
  bottom: -180px;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 42px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
  margin: 0 0 28px;
  max-width: 660px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.hero-search {
  display: flex;
  width: min(100%, 560px);
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

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

.hero-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-search button,
.primary-btn {
  padding: 13px 24px;
  color: #ea580c;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.ghost-btn {
  padding: 13px 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

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

.hero-search button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.hero-showcase {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(88, 28, 135, 0.28);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 22px;
  align-items: end;
  padding: 22px;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-poster {
  align-self: stretch;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.28);
}

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

.hero-slide-copy {
  padding: 20px 8px 54px 0;
}

.hero-slide-copy span {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.hero-slide-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
}

.hero-slide-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dots button.active {
  width: 28px;
  background: #ffffff;
}

.stats-strip {
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

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

.stats-grid div {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.stats-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 34px;
  color: var(--orange);
}

.stats-grid span {
  color: var(--muted);
}

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

.white-section {
  background: #ffffff;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-kicker {
  color: var(--orange);
  margin-bottom: 8px;
}

.section-more {
  font-weight: 800;
  white-space: nowrap;
}

.section-more.orange {
  color: var(--orange);
}

.section-more.blue {
  color: var(--blue);
}

.section-more.green {
  color: var(--green);
}

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

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.3s ease;
}

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

.poster-region,
.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-region {
  left: 10px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.poster-year {
  right: 10px;
  background: rgba(17, 24, 39, 0.75);
}

.rank-badge {
  left: 10px;
  top: 46px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
}

.poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--orange);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-desc {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row a,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ea580c;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 26px;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.category-tile.asia {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.category-tile.euro-america {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.category-tile.japan-korea {
  background: linear-gradient(135deg, #fb7185, #db2777);
}

.category-tile img {
  position: absolute;
  right: -22px;
  bottom: -34px;
  z-index: -1;
  width: 170px;
  height: 230px;
  object-fit: cover;
  border-radius: 22px;
  opacity: 0.22;
  transform: rotate(8deg);
}

.tile-icon {
  display: block;
  margin-bottom: 16px;
  font-size: 46px;
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
}

.category-tile em {
  display: block;
  max-width: 230px;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  line-height: 1.7;
}

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

.page-hero.small-hero {
  background: linear-gradient(135deg, #f97316, #ef4444, #db2777);
}

.page-hero.category-hero.asia {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.page-hero.category-hero.euro-america {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.page-hero.category-hero.japan-korea {
  background: linear-gradient(135deg, #fb7185, #db2777);
}

.rank-hero {
  background: linear-gradient(135deg, #111827, #ef4444, #f97316);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel input {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 13px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--orange);
  background: #fff7ed;
  font-weight: 800;
}

.hidden-by-search {
  display: none !important;
}

.rank-container {
  max-width: 980px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 84px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.rank-thumb {
  display: block;
  width: 84px;
  height: 112px;
  overflow: hidden;
  border-radius: 14px;
}

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

.rank-item h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-item p,
.rank-item span {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-watch {
  padding: 11px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-weight: 800;
}

.watch-section {
  padding: 34px 0 64px;
  color: #ffffff;
  background: radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.36), transparent 30%), linear-gradient(135deg, #111827, #1f2937 55%, #3f0d2c);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

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

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
  gap: 28px;
  align-items: stretch;
}

.video-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
}

.video-panel video,
.player-poster,
.player-poster img {
  width: 100%;
  height: 100%;
}

.video-panel video {
  display: block;
  background: #000000;
}

.player-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #000000;
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-poster img {
  object-fit: cover;
  opacity: 0.66;
}

.player-poster.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-round {
  position: absolute;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-size: 26px;
}

.watch-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.watch-info h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.watch-info p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.watch-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 750;
}

.detail-section {
  padding: 58px 0;
}

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

.detail-main,
.detail-side {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 30px;
}

.detail-main h2,
.detail-side h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.detail-main p {
  margin: 0 0 28px;
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  font-weight: 750;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.prev-next a {
  color: var(--orange);
  font-weight: 800;
}

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

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

.footer-brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

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

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

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

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

  .hero-showcase {
    min-height: 420px;
  }
}

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

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

  .hero {
    padding: 58px 0 72px;
  }

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

  .hero-showcase {
    min-height: 620px;
  }

  .hero-slide-copy {
    padding: 0 4px 52px;
  }

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

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

  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-panel input {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: 44px 70px 1fr;
  }

  .rank-watch {
    grid-column: 2 / -1;
    text-align: center;
  }
}

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

  .brand {
    font-size: 19px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-search,
  .hero-actions,
  .section-heading,
  .prev-next {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    border-radius: 24px;
  }

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

  .hero-showcase {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 14px;
  }

  .stats-grid,
  .category-grid,
  .movie-grid,
  .library-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }

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

  .movie-info {
    padding: 11px;
  }

  .movie-info h3 {
    font-size: 14px;
  }

  .movie-desc,
  .tag-row {
    display: none;
  }

  .watch-section {
    padding-top: 22px;
  }

  .watch-info,
  .detail-main,
  .detail-side {
    padding: 22px;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .rank-watch {
    grid-column: auto;
  }
}
