@font-face {
  font-family: "Fortuna Gothic FlorishC";
  src: url("../assets/ofont.ru_Fortuna Gothic FlorishC.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg-void: #000000;
  --bg-deep: #030303;
  --bg-surface: #0a0a0a;
  --bg-elevated: #101010;
  --ink: #f1f1f1;
  --ink-soft: #bbbbbb;
  --ink-faint: #969696;
  --silver: #d6d6d6;
  --silver-dim: #868686;
  --border-ornate: #313131;
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow-deep: rgba(0, 0, 0, 0.6);
  --shadow-bright: rgba(255, 255, 255, 0.1);
  --accent-glow: rgba(218, 220, 235, 0.2);
  --accent-border: rgba(255, 255, 255, 0.42);
  --accent-icon-glow: rgba(220, 222, 238, 0.38);
  --focus-ring: rgba(236, 234, 250, 0.92);
  --container-width: 1220px;
  --card-radius: 24px;
  --control-radius: 14px;
  --ornament-size: 54px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Crimson Pro", serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.9)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.02), transparent 24%),
    url("../assets/bg-kick-wall.png") center / cover no-repeat fixed,
    linear-gradient(180deg, #060606 0%, #010101 48%, #000000 100%);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cfilter id='glow'%3E%3CfeGaussianBlur stdDeviation='2' result='coloredBlur'/%3E%3CfeMerge%3E%3CfeMergeNode in='coloredBlur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23333333' filter='url(%23glow)' opacity='0.8'%3E%3Cpath d='M3 3 L15 12 L9 14 L6 21 L3 3'/%3E%3Cpath d='M4 4 L14 11 L9 13 L7 19 L4 4'/%3E%3C/g%3E%3Cg fill='%23cccccc' filter='url(%23glow)'%3E%3Cpath d='M3 3 L13 11 L9 12 L8 17 L3 3'/%3E%3C/g%3E%3C/svg%3E") 0 0, auto;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 0;
  opacity: 0.75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='160' viewBox='0 0 24 160'%3E%3Crect width='24' height='160' fill='%23020202'/%3E%3Cpath d='M12 0l3 8 6 4-6 4-3 8-3-8-6-4 6-4 3-8Zm0 32 4 10 6 3-6 5-4 10-4-10-6-5 6-3 4-10Zm0 40 3 8 6 4-6 4-3 8-3-8-6-4 6-4 3-8Zm0 32 4 10 6 3-6 5-4 10-4-10-6-5 6-3 4-10Z' fill='none' stroke='%23656565' stroke-width='1'/%3E%3Cpath d='M12 0v160' stroke='%23f1f1f1' stroke-opacity='.22'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 24px 160px;
  pointer-events: none;
}

body::before {
  left: 0;
}

body::after {
  right: 0;
  transform: scaleX(-1);
}

body > svg.page-noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  z-index: 0;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.social-link:focus-visible {
  outline-offset: 5px;
  border-radius: 12px;
}

.filter-btn:focus-visible {
  outline-offset: 4px;
}

.sort-select:focus-visible,
.search-input:focus-visible {
  outline-offset: 2px;
}

.modal-close:focus-visible {
  outline-offset: 4px;
  border-radius: 6px;
}

.soundcloud-toggle:focus-visible {
  outline-offset: 3px;
}

.soundcloud-volume-slider:focus-visible {
  outline-offset: 4px;
}

[data-movie-card]:focus-visible {
  outline: none;
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow:
    inset 0 0 0 2px var(--focus-ring),
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 28px var(--accent-glow);
}

[data-movie-card]:focus-visible::before,
[data-movie-card]:focus-visible::after,
[data-movie-card]:focus-visible .corner::before,
[data-movie-card]:focus-visible .corner::after {
  opacity: 1;
  filter: brightness(1.24) drop-shadow(0 0 10px rgba(255, 255, 255, 0.14));
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 3rem), var(--container-width));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
  background: transparent;
}

.site-header {
  position: relative;
  text-align: center;
  padding: 2.4rem 0 1.5rem;
  overflow: visible;
  opacity: 0;
  transform: scale(0.95);
  animation: headerReveal 1.2s ease forwards;
}

.social-links {
  position: fixed;
  top: 0.4rem;
  right: 0.45rem;
  display: flex;
  gap: 0.8rem;
  z-index: 12;
}

.social-link {
  position: relative;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.social-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: blur(0.35px) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transform: scale(1.01);
}

.social-image--kick {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.42));
  transform: scale(0.98);
}

.crest-frame {
  position: relative;
  width: min(340px, 84vw);
  margin: 0 auto -2.8rem;
  padding-top: 2.8rem;
  overflow: visible;
  z-index: 3;
}

.crest-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 6% -6% 8% -6%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.18)),
    radial-gradient(circle, rgba(255, 255, 255, 0.02), transparent 65%);
  filter: blur(12px);
  pointer-events: none;
}

.crest-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
}

.crest-glow::before {
  content: "";
  position: absolute;
  left: 49%;
  top: 27%;
  width: 46%;
  height: 26%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(216, 32, 54, 0.5) 0%, rgba(180, 22, 42, 0.2) 46%, transparent 74%);
  filter: blur(11px);
  animation: crestRoseEdgeGlow 4.6s ease-in-out infinite;
}

.crest-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: contain;
  transform: translateY(14px) scale(0.96);
  opacity: 0.9;
  animation: crestCrimsonPulse 5.2s ease-in-out infinite;
}

.crest-blood {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
}

.blood-drip {
  position: absolute;
  top: var(--top, 45%);
  left: var(--x, 50%);
  width: 1.4px;
  height: 0;
  background: linear-gradient(180deg, rgba(110, 14, 18, 0.5), rgba(60, 6, 9, 0.32));
  border-radius: 0 0 2px 2px;
  filter: blur(0.35px);
  transform-origin: top center;
  opacity: 0;
  animation: bloodDrip var(--dur, 8.5s) ease-in infinite;
  animation-delay: var(--delay, 0s);
}

.blood-drip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2.5px;
  width: 2.6px;
  height: 3.5px;
  transform: translateX(-50%);
  background: rgba(95, 12, 15, 0.45);
  border-radius: 50% 50% 50% 50% / 62% 62% 42% 42%;
}

@keyframes bloodDrip {
  0% {
    height: 0;
    opacity: 0;
  }

  14% {
    opacity: 0.55;
  }

  60% {
    height: var(--len, 22px);
    opacity: 0.5;
  }

  85% {
    height: calc(var(--len, 22px) + 9px);
    opacity: 0.28;
  }

  100% {
    height: calc(var(--len, 22px) + 9px);
    opacity: 0;
  }
}

@keyframes crestCrimsonPulse {
  0%,
  100% {
    filter:
      brightness(0.86)
      saturate(0.8)
      drop-shadow(0 14px 30px rgba(0, 0, 0, 0.62))
      drop-shadow(0 0 0.35px rgba(150, 40, 48, 0.03))
      drop-shadow(0 0 4px rgba(160, 45, 55, 0.02));
  }

  50% {
    filter:
      brightness(0.92)
      saturate(0.88)
      drop-shadow(0 14px 30px rgba(0, 0, 0, 0.62))
      drop-shadow(0 0 0.45px rgba(170, 48, 60, 0.05))
      drop-shadow(0 0 6px rgba(175, 50, 62, 0.03));
  }
}

@keyframes crestRoseEdgeGlow {
  0%,
  100% {
    opacity: 0.15;
    filter: brightness(0.98);
  }

  35% {
    opacity: 0.24;
    filter: brightness(1.08);
  }

  70% {
    opacity: 0.2;
    filter: brightness(1.02);
  }
}

.site-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.9rem, 4.8vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0.13em;
  font-kerning: none;
  font-variant-ligatures: none;
  font-feature-settings: "kern" 0;
  color: #e5e6ea;
  background: linear-gradient(180deg, #f9fafc 0%, #d9dce2 52%, #b3b8c1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 -1px 0 rgba(12, 16, 24, 0.92),
    0 8px 18px rgba(0, 0, 0, 0.42);
  position: relative;
  z-index: 1;
  padding-top: 1.2rem;
}

.site-title br {
  display: block;
  margin-top: 0.06em;
}

.site-title-sub {
  display: inline-block;
  font-family: "IM Fell English", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.4em;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  -webkit-text-fill-color: var(--ink-soft);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.6);
  animation: neonSignFlicker 11s linear infinite;
  animation-delay: 2s;
}

@keyframes neonSignFlicker {
  0%,
  91%,
  100% {
    opacity: 1;
    filter: brightness(1);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.6);
  }

  92% {
    opacity: 0.3;
    filter: brightness(0.7);
  }

  93% {
    opacity: 0.88;
    filter: brightness(1.6);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.75), 0 1px 2px rgba(0, 0, 0, 0.6);
  }

  94% {
    opacity: 0.4;
    filter: brightness(0.75);
  }

  95% {
    opacity: 1;
    filter: brightness(1.7);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6);
  }

  96% {
    opacity: 1;
    filter: brightness(1);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.6);
  }
}

.site-title-main {
  display: inline-block;
  font-size: 1.06em;
}

.site-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(3deg);
  animation: letterReveal 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: calc(0.65s + var(--i, 0) * 30ms);
}

.site-title-main .letter.snuff {
  animation: letterReveal 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards, candleSnuff var(--snuff-dur, 16s) ease-in-out infinite;
  animation-delay: calc(0.65s + var(--i, 0) * 30ms), var(--snuff-delay, 4s);
}

@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes candleSnuff {
  0%,
  72%,
  100% {
    opacity: 1;
    filter: brightness(1) drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }

  73% {
    opacity: 0.5;
    filter: brightness(1.5) drop-shadow(0 0 7px rgba(195, 215, 255, 0.6));
  }

  75% {
    opacity: 0.8;
    filter: brightness(1.1) drop-shadow(0 0 3px rgba(195, 215, 255, 0.3));
  }

  77% {
    opacity: 0.22;
    filter: brightness(0.5);
  }

  80% {
    opacity: 0.04;
    filter: brightness(0.2);
  }

  92% {
    opacity: 0.03;
    filter: brightness(0.18);
  }

  95% {
    opacity: 0.25;
    filter: brightness(0.45);
  }

  97% {
    opacity: 0.65;
    filter: brightness(0.85);
  }

  99% {
    opacity: 0.95;
    filter: brightness(1.05);
  }
}

.site-subtitle {
  margin: 0.65rem 0 0;
  font-family: "IM Fell English", serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--ink-soft);
}

.watchtime-strip {
  position: relative;
  width: min(520px, 94%);
  margin: 1rem auto 0;
  padding: 0.55rem 1rem 0.7rem;
  display: grid;
  gap: 0.7rem;
  border: 1px solid rgba(150, 118, 124, 0.46);
  background:
    linear-gradient(180deg, rgba(110, 56, 66, 0.2), rgba(12, 8, 10, 0.88)),
    rgba(4, 4, 8, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 235, 0.12),
    inset 0 -1px 0 rgba(20, 8, 10, 0.9),
    0 10px 24px rgba(0, 0, 0, 0.42);
}

.watchtime-strip::before,
.watchtime-strip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(180, 150, 156, 0.52);
  transform: translateY(-50%) rotate(45deg);
  background: rgba(12, 8, 12, 0.85);
  pointer-events: none;
}

.watchtime-strip::before {
  left: -8px;
}

.watchtime-strip::after {
  right: -8px;
}

.watchtime-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.watchtime-label {
  color: rgba(230, 214, 218, 0.92);
  font-family: "Cinzel Decorative", serif;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85);
}

.watchtime-value {
  color: #efe4e6;
  font-family: "Cinzel Decorative", serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.9),
    0 0 7px rgba(150, 44, 66, 0.22);
}

.watchtime-progress {
  position: relative;
  height: 12px;
  border: 1px solid rgba(168, 140, 146, 0.42);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0 2px, transparent 2px 9px) top / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0 2px, transparent 2px 9px) bottom / 100% 3px no-repeat,
    linear-gradient(180deg, rgba(16, 10, 13, 0.95), rgba(6, 4, 6, 0.95)),
    rgba(8, 5, 8, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 220, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.75);
  overflow: visible;
  border-radius: 2px;
}

.watchtime-progress-fill {
  position: relative;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #5f0b1f 0%, #8f1430 55%, #c22648 100%);
  box-shadow:
    inset 0 0 8px rgba(255, 140, 160, 0.2),
    0 0 8px rgba(170, 22, 54, 0.2);
  transition: width 0.5s ease;
  animation: emberPulse 3.8s ease-in-out infinite;
  overflow: visible;
}

@keyframes emberPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 8px rgba(255, 140, 160, 0.18),
      0 0 6px rgba(170, 22, 54, 0.18);
  }

  50% {
    box-shadow:
      inset 0 0 11px rgba(255, 150, 170, 0.3),
      0 0 13px rgba(194, 38, 72, 0.4);
  }
}

.watchtime-drip {
  position: absolute;
  right: -1px;
  top: 100%;
  width: 1.6px;
  height: 0;
  background: linear-gradient(180deg, rgba(168, 14, 28, 0.75), rgba(96, 5, 15, 0.6));
  border-radius: 0 0 2px 2px;
  animation: bloodDrip 6.5s ease-in infinite;
  animation-delay: 2.4s;
  pointer-events: none;
}

.watchtime-drip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 3px;
  height: 4px;
  transform: translateX(-50%);
  background: rgba(150, 12, 22, 0.7);
  border-radius: 50% 50% 50% 50% / 62% 62% 42% 42%;
}

.ornament-line {
  width: min(720px, 94%);
  margin: 1.3rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--silver);
}

.ornament-icon {
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
}

.ornament-icon.heart {
  width: 24px;
  height: 24px;
}

.ornament-icon.dagger {
  width: 21px;
  height: 21px;
  opacity: 0.96;
}

.controls {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.4fr 220px minmax(220px, 300px);
  gap: 1rem;
  padding: 1.1rem;
  margin: 0 auto 1.6rem;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.97), rgba(1, 1, 1, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem 0.42rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.3));
  color: var(--ink-soft);
  font-family: "Cinzel Decorative", serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.56rem;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.filter-btn-mark {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 0.42rem;
  background: currentColor;
  opacity: 0.4;
  transform: rotate(45deg);
  transition: opacity 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.filter-btn-count {
  margin-left: 0.4rem;
  padding: 0.04rem 0.36rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(225, 228, 236, 0.72);
  font-family: "Crimson Pro", serif;
  text-transform: none;
  font-size: 0.85em;
  letter-spacing: 0.02em;
  transition: border-color 0.35s ease, color 0.35s ease;
}

.filter-btn:hover {
  background: linear-gradient(180deg, rgba(240, 240, 240, 0.1), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.05);
}

.filter-btn:hover .filter-btn-mark {
  opacity: 0.85;
}

.filter-btn.active {
  background: linear-gradient(180deg, rgba(194, 38, 72, 0.22), rgba(30, 6, 12, 0.5));
  border-color: rgba(194, 38, 72, 0.65);
  color: #f5e9ec;
  box-shadow: 0 8px 22px rgba(194, 38, 72, 0.16), inset 0 0 0 1px rgba(194, 38, 72, 0.2);
}

.filter-btn.active .filter-btn-mark {
  opacity: 1;
  background: #e8637e;
}

.filter-btn.active .filter-btn-count {
  border-color: rgba(194, 38, 72, 0.5);
  color: rgba(245, 220, 226, 0.92);
}

.sort-select,
.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--control-radius);
  background: rgba(17, 17, 17, 0.9);
  color: var(--ink);
  padding: 0.8rem 1rem;
}

.sort-wrap,
.search-wrap {
  position: relative;
}

.sort-select {
  appearance: none;
  padding-right: 3rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--silver) 50%),
    linear-gradient(135deg, var(--silver) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 52%,
    calc(100% - 14px) 52%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.search-wrap svg {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--silver);
  pointer-events: none;
}

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

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 3.3rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%),
    rgba(6, 6, 6, 0.92);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.empty-state strong {
  display: block;
  margin-bottom: 0.6rem;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.2rem;
  color: var(--ink);
}

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    var(--bg-surface);
  border: 1px solid var(--border-ornate);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.9s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

.movie-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.movie-card::before,
.movie-card::after,
.movie-card .corner::before,
.movie-card .corner::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../assets/card-cross.png");
  opacity: 0.92;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
}

.movie-card::before {
  top: auto;
  bottom: 18px;
  left: 14px;
}

.movie-card::after {
  top: auto;
  bottom: 18px;
  right: 14px;
  transform: scaleX(-1);
}

.movie-card .corner::before {
  display: none;
}

.movie-card .corner::after {
  display: none;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55), 0 0 28px var(--accent-glow);
  border-color: var(--accent-border);
}

.movie-card:hover::before,
.movie-card:hover::after,
.movie-card:hover .corner::before,
.movie-card:hover .corner::after {
  opacity: 1;
  filter: brightness(1.24) drop-shadow(0 0 10px rgba(255, 255, 255, 0.14));
}

.poster-wrap {
  position: relative;
}

.movie-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #050505;
  filter: grayscale(0.35) sepia(0.08) contrast(1.05) saturate(0.85) brightness(0.94);
  transition: filter 0.5s ease;
}

.movie-card:hover .movie-poster {
  filter: grayscale(0) sepia(0) contrast(1) saturate(1) brightness(1);
}

.poster-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92) 82%, rgba(0, 0, 0, 1));
  pointer-events: none;
}

.rating-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 104px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-image: url("../assets/rating-heart-thorns.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.35s ease;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
}

.rating-badge.rating-low,
.rating-badge.rating-mid,
.rating-badge.rating-high {
  color: #ffffff;
  text-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.95),
    0 0 4px rgba(255, 255, 255, 0.2);
}

.rating-badge:hover {
  transform: scale(1.12) rotate(2deg);
  filter: brightness(0) drop-shadow(0 0 20px #ff0000) drop-shadow(0 0 40px #ff4444);
}

.rating-badge span {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.3rem;
  font-weight: 700;
  z-index: 2;
  line-height: 0.9;
  text-shadow:
    0 3px 8px rgba(0, 0, 0, 0.95),
    0 0 4px rgba(255, 255, 255, 0.15);
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  transform: translateY(-6px);
}

.movie-body {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  padding: 1.2rem 1.2rem 1.4rem;
  flex: 1;
}

.movie-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-meta {
  color: var(--ink-faint);
  font-size: 0.88rem;
  font-style: italic;
}

.movie-review {
  position: relative;
  margin: 0.15rem 0 0;
  padding-left: 1.3rem;
  font-family: "IM Fell English", serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.1em;
}

.movie-review::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.35rem;
  font-size: 2rem;
  color: var(--silver);
}

.movie-footer {
  margin-top: auto;
  padding: 0.5rem 2.6rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
}

.movie-footer-label {
  display: block;
  font-family: "Cinzel Decorative", serif;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--silver);
  text-transform: uppercase;
}

.movie-footer-date {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 20;
}

.scroll-top-btn {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 15;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(32, 10, 16, 0.92), rgba(6, 4, 5, 0.95));
  color: var(--silver);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(14px) scale(0.88);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  border-color: rgba(194, 38, 72, 0.6);
  box-shadow: 0 12px 28px rgba(194, 38, 72, 0.25);
  color: #f5e9ec;
}

.soundcloud-player-wrap {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 2rem));
  z-index: 11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(5, 5, 5, 0.94));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.soundcloud-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.soundcloud-player-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

.soundcloud-volume {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 146px;
}

.soundcloud-volume-label {
  font-family: "Crimson Pro", serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.soundcloud-volume-slider {
  width: 100%;
  accent-color: #d6d6d6;
  background: transparent;
}

.soundcloud-volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(160, 160, 160, 0.34));
}

.soundcloud-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
}

.soundcloud-volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(160, 160, 160, 0.34));
}

.soundcloud-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
}

.soundcloud-player {
  display: block;
  width: 100%;
  height: 116px;
  filter: grayscale(0.1) contrast(1.03);
}

.soundcloud-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-size: 1.2rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
}

.soundcloud-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--ink);
}

.soundcloud-player-wrap.hidden .soundcloud-player {
  display: none;
}

.soundcloud-player-wrap.hidden .soundcloud-toggle::before {
  content: "+";
  position: absolute;
}

.soundcloud-player-wrap.hidden .soundcloud-toggle {
  font-size: 0;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal.open .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.modal-dialog {
  position: relative;
  width: min(700px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 2.6rem 2.5rem 2.3rem;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(194, 38, 72, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 16%),
    var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 80px rgba(0, 0, 0, 0.55),
    0 30px 90px rgba(0, 0, 0, 0.56);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.modal-dialog::before,
.modal-dialog::after,
.modal-dialog .corner::before,
.modal-dialog .corner::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../assets/card-cross.png");
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
}

.modal-dialog::before {
  top: 14px;
  left: 14px;
}

.modal-dialog::after {
  top: 14px;
  right: 14px;
  transform: scaleX(-1);
}

.modal-dialog .corner::before {
  bottom: 14px;
  left: 14px;
  transform: scaleY(-1);
}

.modal-dialog .corner::after {
  bottom: 14px;
  right: 14px;
  transform: scale(-1, -1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  border: 0;
  background: transparent;
  color: var(--silver);
  font-size: 2rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-topline {
  margin-bottom: 1.5rem;
  color: var(--silver);
}

.modal-topline .ornament-line {
  width: 100%;
  margin-top: 0;
  gap: 0.55rem;
  justify-content: flex-start;
}

.modal-topline .ornament-icon.heart {
  width: 30px;
  height: 30px;
}

.modal-topline .ornament-icon.dagger {
  width: 28px;
  height: 28px;
}

.modal-content {
  display: flex;
  gap: 1.6rem;
}

.modal-poster {
  position: relative;
  flex: 0 0 30%;
  padding: 0.4rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.5);
}

.modal-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.modal-info {
  flex: 1;
}

.modal-title {
  margin: 0 0 0.7rem;
  font-family: "Playfair Display", "Cinzel Decorative", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: #f3ecee;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.modal-rule {
  width: 100%;
  height: 1px;
  margin: 0.2rem 0 1.1rem;
  background: linear-gradient(90deg, rgba(194, 38, 72, 0.5), rgba(255, 255, 255, 0.08) 40%, transparent);
}

.modal-rating {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
  font-family: "Playfair Display", "Cinzel Decorative", serif;
  color: var(--silver);
}

.modal-rating strong {
  font-size: 4rem;
  line-height: 0.9;
  color: #fff8f0;
  text-shadow: 0 0 22px rgba(194, 38, 72, 0.4), 0 2px 12px rgba(0, 0, 0, 0.9);
}

.modal-rating span {
  padding-bottom: 0.4rem;
  color: var(--ink-faint);
}

.rating-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.rating-icon.filled {
  filter: drop-shadow(0 0 10px var(--accent-icon-glow));
}

.rating-icon.empty {
  opacity: 0.82;
  filter: grayscale(0.08) brightness(0.88);
}

.modal-review {
  margin: 0 0 1.2rem;
  font-family: "IM Fell English", serif;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
}

.modal-meta {
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.modal-meta span {
  display: block;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-meta strong {
  color: var(--ink);
}

.modal-year {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", "Cinzel Decorative", serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.modal-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.modal-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.3));
  color: var(--ink-soft);
  font-family: "Playfair Display", "Cinzel Decorative", serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6rem;
}

.modal-rating-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes headerReveal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 960px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .modal-content {
    flex-direction: column;
  }

  .modal-poster {
    max-width: 260px;
  }
}

@media (max-width: 600px) {
  body::before,
  body::after {
    width: 14px;
    opacity: 0.32;
    background-size: 14px 160px;
  }

  .site-shell {
    width: min(calc(100% - 1.1rem), var(--container-width));
    padding-bottom: 2rem;
  }

  .site-title {
    letter-spacing: 0.145em;
  }

  .social-links {
    position: static;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .site-header {
    padding-top: 1.2rem;
  }

  .crest-frame {
    padding-top: 1.6rem;
    margin-bottom: -1.6rem;
  }

  .movies-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .ornament-line {
    gap: 0.32rem;
  }

  .ornament-icon.heart {
    width: 20px;
    height: 20px;
  }

  .ornament-icon.dagger {
    width: 17px;
    height: 17px;
  }

  .watchtime-strip {
    width: min(440px, 95%);
    padding: 0.38rem 0.72rem;
    gap: 0.45rem;
  }

  .watchtime-strip::before,
  .watchtime-strip::after {
    width: 11px;
    height: 11px;
  }

  .watchtime-label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .watchtime-value {
    font-size: 0.78rem;
  }

  .watchtime-progress {
    height: 10px;
  }

  .controls {
    padding: 0.9rem;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .modal {
    padding: 0;
  }

  .soundcloud-player-wrap {
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
    width: auto;
  }

  .soundcloud-player-head {
    flex-direction: column;
    align-items: stretch;
  }

  .soundcloud-volume {
    min-width: 0;
  }

  .modal-dialog {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    padding: 1.2rem 1rem 1.5rem;
    border-width: 0;
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .modal-poster {
    max-width: 100%;
  }

  .modal-rating strong {
    font-size: 3.2rem;
  }
}

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

  .site-header {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .site-title-sub {
    animation: none;
    opacity: 1;
    filter: none;
  }

  .site-title .letter,
  .site-title-main .letter.snuff {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .movie-card {
    animation: none !important;
    animation-delay: 0s !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  .movie-card:hover,
  [data-movie-card]:focus-visible {
    transform: none;
  }

  .filter-btn,
  .filter-btn-mark {
    transition: none;
  }

  .social-link {
    transition: none;
  }

  .rating-badge,
  .rating-icon {
    transition: none;
  }

  .modal,
  .modal-dialog {
    transition: none;
  }

  .modal-dialog {
    transform: none;
    opacity: 1;
  }

  .soundcloud-toggle {
    transition: none;
  }

  .watchtime-progress-fill,
  .watchtime-drip {
    animation: none;
  }

  .blood-drip {
    display: none;
  }

  .crest-glow::before {
    animation: none;
    opacity: 0.18;
  }

  .crest-frame img {
    animation: none;
    filter:
      brightness(0.88)
      saturate(0.84)
      drop-shadow(0 14px 30px rgba(0, 0, 0, 0.62))
      drop-shadow(0 0 0.35px rgba(160, 45, 55, 0.04))
      drop-shadow(0 0 5px rgba(170, 45, 55, 0.02));
  }

  .crest-frame::after {
    animation: none;
    opacity: 0.16;
    filter: brightness(1.02);
  }
}
