﻿/* =========================================================
   NOCTURNE — short drama landing page
   ========================================================= */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../font/cormorant-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("../font/cormorant-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../font/manrope.woff2") format("woff2");
}

:root {
  --bg: #5b1420;
  --bg-soft: #45101a;
  --ink: #fff4e8;
  --ink-soft: #f1dacb;
  --muted: #e7c4b6;
  --dim: #c79a90;
  --line: rgba(255, 237, 223, 0.2);
  --line-strong: rgba(255, 237, 223, 0.36);
  --gold: #f2cf9c;
  --gold-bright: #ffe8bf;
  --ember: #ff9e86;
  --oxblood: #511a1d;
  --on-blush: #341017;
  --on-blush-soft: rgba(52, 16, 23, 0.62);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(22px, 4.2vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 22% -10%, rgba(189, 60, 68, 0.65) 0%, transparent 52%),
    radial-gradient(ellipse at 95% 12%, rgba(139, 35, 50, 0.5) 0%, transparent 45%),
    linear-gradient(180deg, #671723 0%, #53111c 38%, #3f0c15 100%);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}

::selection {
  color: #fffaf0;
  background: rgba(191, 90, 82, 0.45);
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #3a0b13;
}

::-webkit-scrollbar-thumb {
  background: #842c37;
  border: 3px solid #3a0b13;
  border-radius: 20px;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

#ranking,
#new-releases,
#download {
  scroll-margin-top: 84px;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 84px;
  border-bottom: 1px solid transparent;
  transition:
    height 0.45s var(--ease),
    background 0.4s ease,
    border-color 0.4s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(71, 13, 24, 0.94), rgba(71, 13, 24, 0));
  pointer-events: none;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(66, 12, 22, 0.97);
  border-bottom-color: var(--line);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  transform: translate(-50%, -50%);
}

.header-nav a {
  position: relative;
  padding: 5px 0;
  color: rgba(233, 199, 185, 0.68);
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--ink);
}

.header-nav a.is-active::after {
  transform: scaleX(1);
}

[dir="rtl"] .header-nav a::after {
  transform-origin: right;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.15em;
}

.brand-sub {
  color: var(--dim);
  font-size: 6px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(17px, 3vw, 32px);
}

.episode-count {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e3bcb0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.episode-count i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 207, 156, 0.13);
}

.header-app {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  height: 38px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.header-app svg {
  width: 14px;
  height: 14px;
}

.header-app:hover {
  color: #14100d;
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------------------------------------------------------
   Shared elements
   --------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: #f0d5c6;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-index {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.eyebrow-rule {
  width: 29px;
  height: 1px;
  background: var(--gold);
}

.eyebrow-centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.4s var(--ease),
    box-shadow 0.4s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-light {
  color: #16110e;
  background: var(--ink);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.button-light:hover {
  background: #fffaf1;
  transform: translateY(-2px);
  box-shadow: 0 19px 45px rgba(0, 0, 0, 0.32);
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 237, 223, 0.3);
  color: #f0d4c5;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    gap 0.35s var(--ease);
}

.link-quiet svg {
  width: 13px;
  height: 13px;
}

.link-quiet:hover {
  gap: 13px;
  color: var(--gold-bright);
  border-color: var(--gold);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  padding-top: 108px;
}

.hero-card {
  position: relative;
  height: clamp(560px, 70svh, 680px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 204, 0.3);
  border-radius: 4px;
  background: #3b0c14;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.88) contrast(1.02) brightness(1.06);
  animation: heroImageIn 0.9s ease both;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(45, 7, 13, 0.26) 0%, transparent 27%, transparent 58%, rgba(45, 7, 13, 0.75) 100%),
    linear-gradient(90deg, rgba(47, 7, 14, 0.88) 0%, rgba(56, 9, 17, 0.61) 32%, rgba(58, 10, 18, 0.08) 70%, rgba(45, 7, 13, 0.26) 100%),
    linear-gradient(135deg, rgba(163, 47, 48, 0.25), transparent 55%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -27%;
  right: -6%;
  z-index: 1;
  width: min(54vw, 690px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 137, 101, 0.24), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(25px, 3.3vw, 42px) clamp(23px, 4vw, 50px) clamp(21px, 2.8vw, 33px);
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 239, 228, 0.72);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(34px, 5vw, 70px);
  margin-top: auto;
  padding: clamp(34px, 6vh, 62px) 0 clamp(27px, 4vh, 45px);
}

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

.hero-copy .eyebrow {
  color: #f4dccc;
  animation: fadeUp 0.8s var(--ease) 0.12s both;
}

.hero-copy h1 {
  margin: 22px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(68px, 8.4vw, 112px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 3px 32px rgba(28, 4, 9, 0.48);
  animation: fadeUp 1s var(--ease) 0.2s both;
}

.hero-copy h1 em {
  color: var(--gold-bright);
  font-weight: 300;
  font-style: italic;
}

.hero-sub {
  max-width: 470px;
  margin: 22px 0 0;
  color: #f7dfd0;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 14px rgba(28, 4, 9, 0.46);
  animation: fadeUp 1s var(--ease) 0.3s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
  animation: fadeUp 1s var(--ease) 0.4s both;
}

.hero-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 152px;
  margin-bottom: 2px;
  text-align: right;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.68);
  animation: fadeUp 1s var(--ease) 0.5s both;
  isolation: isolate;
}

.hero-stat::before {
  content: "";
  position: absolute;
  inset: -18px -26px -16px -40px;
  z-index: -1;
  background: radial-gradient(ellipse at 76% 54%, rgba(29, 4, 10, 0.58), rgba(29, 4, 10, 0.16) 56%, transparent 78%);
  pointer-events: none;
}

.stat-label {
  color: rgba(255, 238, 226, 0.68);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
}

.stat-number {
  margin: 10px 0 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(58px, 6.5vw, 88px);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 0.8;
  letter-spacing: -0.035em;
}

.stat-caption {
  color: rgba(255, 238, 226, 0.78);
  font-family: var(--serif);
  font-size: 13.5px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.hero-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 237, 223, 0.22);
  color: rgba(255, 238, 226, 0.72);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(28, 4, 9, 0.6);
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.hero-rating b {
  color: var(--gold);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.hero-rating i {
  font-style: normal;
}

/* ---------------------------------------------------------
   Section heading
   --------------------------------------------------------- */

.section {
  padding: clamp(86px, 10vw, 130px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin: 16px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(42px, 4.8vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

.section-aside {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 3px;
  color: #e5c2b4;
}

.section-aside p {
  margin: 0;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.aside-icon {
  width: 27px;
  height: 27px;
  color: rgba(201, 173, 126, 0.8);
}

/* ---------------------------------------------------------
   Ranking
   --------------------------------------------------------- */

.rank-list {
  margin: 33px 0 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 50px 76px minmax(0, 1fr) auto 94px;
  align-items: center;
  gap: clamp(15px, 2.4vw, 28px);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.45s ease;
}

.rank-item:first-child a {
  border-top: 1px solid var(--line);
}

.rank-item a:hover {
  background: linear-gradient(90deg, rgba(255, 226, 210, 0.075), rgba(255, 226, 210, 0));
}

.rank-number {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.35s ease;
}

.rank-item a:hover .rank-number {
  color: #fff8ef;
}

.rank-poster {
  width: 76px;
  height: 98px;
  overflow: hidden;
  border-radius: 2px;
  background: #6b202b;
  contain: paint;
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(1.03) contrast(1.01);
  transition: transform 0.6s var(--ease);
}

.rank-item a:hover .rank-poster img {
  transform: scale(1.045);
}

.rank-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.rank-title {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(23px, 2.3vw, 29px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.rank-item a:hover .rank-title {
  color: var(--gold-bright);
}

.rank-meta {
  color: #eccfc2;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rank-score {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.rank-score svg {
  width: 12px;
  height: 12px;
  color: var(--gold);
}

.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: #e4c0b2;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.rank-action svg {
  width: 30px;
  height: 30px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.4s var(--ease);
}

.rank-item a:hover .rank-action {
  color: var(--ink);
}

.rank-item a:hover .rank-action svg {
  color: #16110e;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateX(2px);
}

/* ---------------------------------------------------------
   New releases
   --------------------------------------------------------- */

.new-section {
  padding: clamp(84px, 9.5vw, 124px) 0;
  overflow: hidden;
  color: var(--on-blush);
  background:
    radial-gradient(ellipse at 86% 0%, rgba(255, 255, 255, 0.36), transparent 38%),
    linear-gradient(135deg, #eed4c8 0%, #e4bdb1 100%);
  border-top: 1px solid rgba(72, 19, 28, 0.14);
  border-bottom: 1px solid rgba(72, 19, 28, 0.14);
}

.new-section .section-head {
  border-top-color: rgba(52, 16, 23, 0.18);
}

.new-section .eyebrow {
  color: var(--on-blush-soft);
}

.new-section .eyebrow-index {
  color: #9d2d36;
}

.new-section .section-heading h2 {
  color: var(--on-blush);
}

.new-section .section-aside {
  color: rgba(52, 16, 23, 0.64);
}

.new-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.3vw, 28px);
  margin-top: 34px;
}

.new-pager {
  display: none;
}

.new-card {
  display: block;
  min-width: 0;
  color: var(--ink);
}

.new-card-extra {
  display: none;
}

.new-art {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(52, 16, 23, 0.2);
  border-radius: 3px;
  background: #33131a;
  isolation: isolate;
  contain: paint;
  transition:
    border-color 0.4s ease,
    transform 0.55s var(--ease),
    box-shadow 0.55s ease;
}

.new-card:hover .new-art {
  border-color: rgba(78, 24, 32, 0.52);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(76, 25, 30, 0.2);
}

.new-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.01) brightness(1.02);
  transition: transform 0.7s var(--ease);
}

.new-card:hover .new-art img {
  transform: scale(1.04);
}

.new-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(45, 8, 14, 0.16) 0%, transparent 30%, transparent 52%, rgba(45, 8, 14, 0.86) 100%);
  pointer-events: none;
}

.new-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 3;
  padding: 5px 8px 4px;
  border: 1px solid rgba(255, 191, 177, 0.6);
  border-radius: 2px;
  color: #fff1e6;
  background: rgba(104, 26, 30, 0.92);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.new-play {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(52, 16, 23, 0.18);
  border-radius: 50%;
  color: #2d0b12;
  background: rgba(255, 244, 232, 0.94);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease);
}

.new-play svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.new-card:hover .new-play,
.new-card:focus-visible .new-play {
  opacity: 1;
  transform: translateY(0);
}

.new-caption {
  position: absolute;
  right: 19px;
  bottom: 18px;
  left: 19px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.5s var(--ease);
}

.new-card:hover .new-caption {
  transform: translateY(-2px);
}

.new-meta {
  color: rgba(255, 241, 230, 0.74);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.new-title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff5eb;
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.005em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---------------------------------------------------------
   Download
   --------------------------------------------------------- */

.download {
  padding-top: clamp(90px, 10vw, 132px);
  padding-bottom: clamp(90px, 10vw, 132px);
}

.download-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 229, 205, 0.28);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 50% -15%, rgba(255, 147, 108, 0.42), transparent 55%),
    linear-gradient(140deg, #a82d38 0%, #6e1520 58%, #4c0d16 100%);
  text-align: center;
  isolation: isolate;
}

.download-glow {
  position: absolute;
  top: -210px;
  left: 50%;
  width: 780px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 157, 113, 0.3), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.download-frame {
  position: absolute;
  inset: 13px;
  z-index: 1;
  border: 1px solid rgba(255, 241, 228, 0.18);
  border-radius: 2px;
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(70px, 9vw, 105px) 24px clamp(62px, 8vw, 92px);
}

.download-content h2 {
  margin: 24px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 74px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.download-content h2 em {
  color: var(--gold-bright);
  font-weight: 300;
  font-style: italic;
}

.download-sub {
  margin: 21px 0 0;
  color: #ffdac9;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.015em;
}

.download-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.download-button {
  min-width: 226px;
  min-height: 55px;
}

.download-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  color: #ecc9bb;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.download-note span {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.download-note i {
  font-style: normal;
}

.download-side {
  position: absolute;
  right: clamp(20px, 3vw, 37px);
  bottom: clamp(20px, 2.6vw, 32px);
  z-index: 2;
  color: rgba(255, 236, 222, 0.38);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  padding: 58px 0 28px;
  background: #300912;
  border-top: 1px solid rgba(255, 237, 223, 0.16);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 0.7fr 0.9fr;
  gap: 40px;
}

.footer-brand p {
  margin: 20px 0 0;
  color: #e1bdb0;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.footer-label {
  display: block;
  margin-bottom: 15px;
  color: #b58d81;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-label-trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-label-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  color: var(--gold);
  opacity: 0.9;
}

.footer-nav,
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav a,
.footer-meta a,
.footer-meta > span:not(.footer-label) {
  margin-bottom: 10px;
  color: #e4c0b2;
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-meta a:hover {
  color: var(--gold-bright);
}

.footer-meta > span:not(.footer-label) {
  color: #b58d81;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 50px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 237, 223, 0.16);
  color: #b58d81;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: #b58d81;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #aaa298;
}

/* ---------------------------------------------------------
   Mobile sticky download
   --------------------------------------------------------- */

.mobile-sticky {
  position: fixed;
  right: 13px;
  bottom: 13px;
  left: 13px;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(255, 237, 223, 0.24);
  border-radius: 999px;
  background: rgba(60, 12, 21, 0.98);
  box-shadow: 0 14px 36px rgba(54, 7, 14, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease);
}

.mobile-sticky.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-sticky > span {
  color: #e8cabc;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.mobile-sticky > span b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
}

.mobile-sticky > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  color: #16110e;
  background: var(--ink);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.07em;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border: 1px solid rgba(201, 173, 126, 0.28);
  border-radius: 999px;
  color: #17120f;
  background: var(--ink);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast > span {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #9c3c33;
}

.toast p {
  margin: 0;
}

/* ---------------------------------------------------------
   Reveal & motion
   --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(17px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-card {
    height: clamp(560px, 72svh, 650px);
  }

  .hero-body {
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(64px, 8.8vw, 92px);
  }

  .hero-sub {
    max-width: 410px;
  }

  .rank-item a {
    grid-template-columns: 44px 68px minmax(0, 1fr) auto 74px;
    gap: 16px;
  }

  .rank-number {
    font-size: 32px;
  }

  .rank-poster {
    width: 68px;
    height: 88px;
  }

  .rank-action {
    gap: 0;
  }

  .rank-action > span {
    display: none;
  }

  .rank-action svg {
    width: 31px;
    height: 31px;
  }

  .new-title {
    font-size: 25px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  #ranking,
  #new-releases,
  #download {
    scroll-margin-top: 80px;
  }

  .site-header {
    height: 70px;
  }

  .site-header.is-scrolled {
    height: 62px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 5.5px;
  }

  .episode-count {
    display: none;
  }

  .header-app {
    height: 35px;
    padding: 0 14px;
    font-size: 8px;
    gap: 9px;
  }

  .header-app svg {
    width: 12px;
    height: 12px;
  }

  .hero {
    padding-top: 88px;
  }

  .hero-card {
    height: auto;
    min-height: 632px;
    border-radius: 3px;
  }

  .hero-image {
    object-position: 60% 45%;
    filter: saturate(0.9) contrast(1.02) brightness(1.05);
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(45, 7, 13, 0.2) 0%, transparent 25%, rgba(45, 7, 13, 0.58) 61%, rgba(45, 7, 13, 0.86) 100%),
      linear-gradient(90deg, rgba(47, 7, 14, 0.78), rgba(56, 9, 17, 0.28) 75%, rgba(45, 7, 13, 0.45)),
      linear-gradient(135deg, rgba(163, 47, 48, 0.18), transparent 58%);
  }

  .hero-inner {
    min-height: 632px;
    padding: 21px 20px 18px;
  }

  .hero-topline {
    font-size: 6.5px;
  }

  .hero-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 61px 0 23px;
  }

  .hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(51px, 15.4vw, 74px);
    line-height: 0.91;
  }

  .hero-sub {
    max-width: 100%;
    margin-top: 18px;
    font-size: 12.5px;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 17px 22px;
    margin-top: 26px;
  }

  .button {
    min-height: 49px;
    padding: 0 19px;
    font-size: 9px;
    gap: 13px;
  }

  .button svg {
    width: 16px;
    height: 16px;
  }

  .link-quiet {
    font-size: 8px;
  }

  .hero-stat {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0 11px;
    width: 100%;
    margin: 0;
    padding-top: 19px;
    border-top: 1px solid rgba(243, 237, 226, 0.14);
    text-align: left;
  }

  .hero-stat::before {
    inset: -15px -18px -13px -17px;
    background: radial-gradient(ellipse at 18% 55%, rgba(29, 4, 10, 0.62), rgba(29, 4, 10, 0.14) 58%, transparent 80%);
  }

  .stat-label {
    display: none;
  }

  .stat-number {
    margin: 0;
    font-size: 54px;
    line-height: 0.8;
  }

  .stat-caption {
    font-size: 11.5px;
  }

  .hero-bottomline {
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 15px;
    font-size: 6.5px;
  }

  .hero-bottomline > span:first-child {
    max-width: 210px;
    line-height: 1.6;
  }

  .hero-rating {
    gap: 8px;
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    display: block;
    padding-top: 19px;
  }

  .section-heading h2 {
    margin-top: 13px;
    font-size: clamp(38px, 10.4vw, 46px);
  }

  .section-aside {
    margin-top: 19px;
    padding-bottom: 0;
  }

  .section-aside p {
    font-size: 7.5px;
    line-height: 1.7;
  }

  .aside-icon {
    width: 23px;
    height: 23px;
  }

  .rank-list {
    margin-top: 25px;
  }

  .rank-item a {
    grid-template-columns: 27px 60px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 13px 0;
  }

  .rank-number {
    font-size: 25px;
  }

  .rank-poster {
    width: 60px;
    height: 78px;
  }

  .rank-info {
    gap: 4px;
  }

  .rank-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.15;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .rank-meta {
    font-size: 7px;
    letter-spacing: 0.075em;
    white-space: normal;
  }

  .rank-score {
    gap: 5px;
    font-size: 16px;
  }

  .rank-score svg {
    width: 10px;
    height: 10px;
  }

  .rank-action {
    display: none;
  }

  .new-section {
    padding: 76px 0 80px;
  }

  .new-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .new-art {
    aspect-ratio: 2 / 3;
  }

  .new-tag {
    top: 9px;
    left: 9px;
    padding: 4px 6px 3px;
    font-size: 5.5px;
    letter-spacing: 0.12em;
  }

  .new-play {
    display: none;
  }

  .new-caption {
    right: 10px;
    bottom: 11px;
    left: 10px;
    gap: 4px;
  }

  .new-meta {
    display: none;
  }

  .new-title {
    font-size: clamp(14px, 4.3vw, 18px);
    line-height: 1.15;
    -webkit-line-clamp: 3;
  }

  .download {
    padding-top: 78px;
    padding-bottom: 82px;
  }

  .download-frame {
    inset: 9px;
  }

  .download-content {
    padding: 64px 22px 58px;
  }

  .download-content h2 {
    margin-top: 19px;
    font-size: clamp(36px, 10vw, 50px);
    line-height: 1.05;
  }

  .download-sub {
    margin-top: 17px;
    font-size: 14px;
  }

  .download-actions {
    margin-top: 27px;
  }

  .download-button {
    width: 100%;
    max-width: 300px;
    min-width: 0;
    min-height: 52px;
  }

  .download-note {
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    font-size: 7.5px;
  }

  .download-side {
    display: none;
  }

  .site-footer {
    padding-top: 47px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 31px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    margin-top: 16px;
    font-size: 14px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 38px;
    font-size: 7px;
  }

  .footer-legal {
    margin-left: auto;
    gap: 15px;
  }

  .mobile-sticky {
    display: flex;
  }

  .toast {
    bottom: 87px;
    padding: 11px 15px;
    font-size: 9.5px;
  }
}

@media (max-width: 410px) {
  .hero-card {
    min-height: 610px;
  }

  .hero-inner {
    min-height: 610px;
  }

  .hero-copy h1 {
    font-size: clamp(47px, 15vw, 62px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-top: 23px;
  }

  .hero-stat {
    padding-top: 16px;
  }

  .stat-number {
    font-size: 47px;
  }

  .stat-caption {
    font-size: 10.5px;
  }

  .hero-bottomline > span:first-child {
    display: none;
  }

  .new-title {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }

  .rank-meta {
    font-size: 6px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-legal {
    margin-top: 10px;
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .new-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 420px;
    margin: 24px auto 0;
    padding-top: 56px;
    touch-action: pan-y;
  }

  .new-card {
    grid-area: 1 / 1;
    justify-self: center;
    width: 74%;
    max-width: 300px;
    opacity: 0.82;
    pointer-events: none;
    transform-origin: top left;
    touch-action: pan-y;
    transition:
      transform 0.72s var(--ease),
      opacity 0.45s ease;
    will-change: transform, opacity;
    user-select: none;
    -webkit-user-select: none;
  }

  .new-card-extra {
    display: block;
  }

  .new-card.is-front {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
  }

  .new-card:nth-child(1) {
    z-index: 50;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }

  .new-card:nth-child(2) {
    z-index: 40;
    transform: translate3d(24px, -12px, 0) rotate(-1.2deg) scale(0.956);
    opacity: 0.93;
  }

  .new-card:nth-child(3) {
    z-index: 30;
    transform: translate3d(48px, -24px, 0) rotate(-2.4deg) scale(0.912);
    opacity: 0.86;
  }

  .new-card:nth-child(4) {
    z-index: 20;
    transform: translate3d(72px, -36px, 0) rotate(-3.6deg) scale(0.868);
    opacity: 0.79;
  }

  .new-card:nth-child(5) {
    z-index: 10;
    transform: translate3d(96px, -48px, 0) rotate(-4.8deg) scale(0.824);
    opacity: 0.72;
  }

  .new-card:not(.is-front) .new-play {
    display: none;
  }

  .new-card:not(.is-front) .new-tag {
    opacity: 0;
  }

  .new-card.is-front .new-art {
    box-shadow: 0 26px 50px rgba(55, 15, 20, 0.26);
  }

  .new-card .new-art img {
    -webkit-user-drag: none;
  }

  .new-tag {
    top: 12px;
    left: 12px;
    padding: 5px 8px 4px;
    font-size: 7px;
    letter-spacing: 0.14em;
  }

  .new-card.is-front .new-play {
    top: auto;
    right: 14px;
    bottom: 14px;
    display: flex;
    width: 38px;
    height: 38px;
    border-color: rgba(52, 16, 23, 0.16);
    background: rgba(255, 244, 232, 0.93);
    box-shadow: 0 9px 22px rgba(31, 8, 12, 0.22);
    opacity: 1;
    transform: none;
  }

  .new-card.is-front .new-play svg {
    width: 11px;
    height: 11px;
    margin-left: 1px;
  }

  .new-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
  }

  .new-pager span {
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: rgba(59, 22, 26, 0.18);
    transition:
      width 0.3s var(--ease),
      background 0.3s ease;
  }

  .new-pager span.is-active {
    width: 27px;
    background: #8d3a3c;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
