/* Видео-блок портфолио: шахматная сетка, параллакс/появление — без изменений в JS */
.video-showcase {
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: #fad768;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: min(5vw, 80px) min(5vw, 80px) clamp(40px, 6vw, 88px);
  gap: clamp(170px, 8vw, 180px);
  max-width: 1400px;
  counter-reset: portfolio-video;
}

.video-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(100px, 15vw, 180px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  position: relative;
  counter-increment: portfolio-video;
}

.video-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-item:nth-child(odd) {
  grid-template-areas: "video content";
}

.video-item:nth-child(even) {
  grid-template-areas: "content video";
  justify-items: end;
}

.video-wrapper {
  grid-area: video;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  transform: scale(1.15);
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  aspect-ratio: 16/9;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.video-item:nth-child(odd) .video-wrapper {
  margin-left: 10%;
}

.video-item:nth-child(even) .video-wrapper {
  margin-right: 10%;
}

.video-hover-effect {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.showcase-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.25s ease;
}

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

.video-hover-effect.has-played video {
  z-index: 2;
}

.showcase-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.showcase-poster.is-hidden {
  opacity: 0;
}

.video-hover-effect.is-playing .showcase-poster {
  opacity: 0;
}

.video-hover-effect video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
  transition: transform 0.6s ease, opacity 0.6s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.video-hover-effect.is-paused {
  cursor: pointer;
}

.video-hover-effect.is-paused:not(.has-played) video {
  pointer-events: none;
}

.video-hover-effect.is-playing {
  cursor: default;
}

.video-hover-effect.is-playing video,
.video-hover-effect.has-played video {
  pointer-events: auto;
  object-fit: cover;
  background: #000;
}

.video-hover-effect.has-played,
.video-hover-effect.has-showcase-progress {
  z-index: 3;
}

.video-hover-effect.has-showcase-progress video {
  pointer-events: none;
  z-index: 2;
}

.video-hover-effect.has-showcase-progress.is-paused {
  cursor: pointer;
}

.more-projects__item:has(.has-showcase-progress) .more-projects__video {
  z-index: 5;
}

/* --- Плеер v2 (showcase-player.js) --- */
.sp-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 0.35rem 0.5rem 0.45rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 70%, transparent 100%);
  pointer-events: none;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-hover-effect.has-showcase-progress .sp-bar:not([hidden]),
.video-hover-effect.has-played .sp-bar:not([hidden]) {
  visibility: visible;
  opacity: 0;
  pointer-events: none;
}

.video-hover-effect.showcase-chrome-visible .sp-bar:not([hidden]),
.video-hover-effect[data-showcase-scrubbing="1"] .sp-bar:not([hidden]),
.video-hover-effect.is-paused.has-played .sp-bar:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.sp-row--bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: auto;
  min-height: 1.5rem;
}

.sp-track-hit {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 1.25rem;
  padding: 6px 0;
  margin: -6px 0;
  cursor: pointer;
  touch-action: none;
  pointer-events: auto;
  box-sizing: border-box;
}

.sp-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: visible;
}

.sp-buffered,
.sp-played {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  pointer-events: none;
}

.sp-buffered {
  background: rgba(255, 255, 255, 0.32);
  z-index: 1;
}

.sp-played {
  background: rgba(250, 215, 104, 0.9);
  z-index: 2;
}

.sp-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 3;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fad768;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: transform 0.15s ease;
}

.sp-track-hit:active .sp-thumb,
.video-hover-effect[data-showcase-scrubbing="1"] .sp-thumb {
  transform: translateY(-50%) scale(1.15);
}

/* Только кнопка fullscreen + время; таймлайн — нативный у <video> */
.sp-bar--native {
  top: 0.4rem;
  right: 0.4rem;
  left: auto;
  bottom: auto;
  width: auto;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.sp-bar--native .sp-row {
  pointer-events: auto;
  gap: 0.5rem;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
}

.sp-bar--native .sp-times {
  min-width: auto;
}

.sp-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: auto;
}

.sp-times {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1;
  white-space: nowrap;
}

.sp-time-sep {
  opacity: 0.45;
  padding: 0 0.05rem;
}

.sp-fs {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  line-height: 1;
  cursor: pointer;
}

.sp-fs:hover {
  color: #fad768;
}

.sp-volume-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.sp-mute {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  line-height: 1;
  cursor: pointer;
}

.sp-mute:hover {
  color: #fad768;
}

.sp-volume {
  width: 3.25rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  accent-color: #fad768;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  touch-action: none;
}

.sp-volume {
  --sp-vol-pct: 100%;
}

.sp-volume::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #fad768 0%,
    #fad768 var(--sp-vol-pct, 100%),
    rgba(255, 255, 255, 0.22) var(--sp-vol-pct, 100%),
    rgba(255, 255, 255, 0.22) 100%
  );
}

.sp-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-radius: 50%;
  background: #fad768;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.sp-volume::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.sp-volume::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: #fad768;
}

.sp-volume::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: #fad768;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.sp-seek {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 1.4rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  accent-color: #fad768;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: auto;
  touch-action: none;
}

.sp-seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.sp-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #fad768;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.sp-seek::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.sp-seek::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #fad768;
}

.video-wrapper:fullscreen .sp-bar,
.video-wrapper:-webkit-full-screen .sp-bar {
  z-index: 20;
}

/* Старый кастомный таймлайн — отключён, используем нативные controls */
.showcase-progress {
  display: none !important;
}

.showcase-progress--legacy-hidden {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 0.35rem 0.5rem 0.45rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  pointer-events: none;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Полоса кликабельна целиком, когда видео уже запускали. */
.video-hover-effect.has-showcase-progress .showcase-progress:not([hidden]) {
  visibility: visible;
  opacity: 0.4;
  pointer-events: auto;
}

.video-hover-effect.showcase-chrome-visible .showcase-progress:not([hidden]),
.video-hover-effect[data-showcase-scrubbing="1"] .showcase-progress:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.video-hover-effect.has-showcase-progress .showcase-progress__track-hit,
.video-hover-effect.has-showcase-progress .showcase-progress__range-wrap,
.video-hover-effect.has-showcase-progress .showcase-progress__fs {
  pointer-events: auto;
}

.showcase-progress[hidden] {
  display: none !important;
}

.showcase-progress__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: auto;
}

.showcase-progress__range {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  accent-color: #fad768;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.showcase-progress__range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.showcase-progress__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-radius: 50%;
  background: #fad768;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.showcase-progress__range::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.showcase-progress__range::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 50%;
  background: #fad768;
}

.showcase-progress__fs {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.showcase-progress__fs:hover {
  opacity: 1;
  color: #fad768;
}

.showcase-progress__fs:focus-visible {
  outline: 1px solid rgba(250, 215, 104, 0.6);
  outline-offset: 2px;
}

.showcase-progress__track-hit,
.showcase-progress__range-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 12px 0;
  margin: -12px 0;
  cursor: pointer;
  touch-action: none;
  position: relative;
}

.showcase-progress__range-wrap .showcase-progress__buffer {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  pointer-events: none;
}

.showcase-progress__track {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  user-select: none;
}

.showcase-progress__buffer,
.showcase-progress__played {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  pointer-events: none;
}

.showcase-progress__buffer {
  background: rgba(255, 255, 255, 0.32);
  z-index: 1;
}

.showcase-progress__played {
  background: rgba(250, 215, 104, 0.85);
  z-index: 2;
}

.showcase-progress__thumb {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 3;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  transform: translateY(-50%) scale(0);
  border-radius: 50%;
  background: #fad768;
  border: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.video-hover-effect.showcase-chrome-visible .showcase-progress__thumb,
.video-hover-effect[data-showcase-scrubbing="1"] .showcase-progress__thumb {
  transform: translateY(-50%) scale(1);
}

.showcase-progress__track-hit:active .showcase-progress__thumb {
  transform: translateY(-50%) scale(1.12);
}

.showcase-progress__times {
  flex-shrink: 0;
  display: flex;
  gap: 0.25rem;
  min-width: 4.2rem;
  justify-content: flex-end;
  font-family: 'Manrope', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-progress,
  .showcase-progress__thumb {
    transition: none;
  }

  .video-hover-effect.has-showcase-progress .showcase-progress {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.video-wrapper:fullscreen,
.video-wrapper:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  transform: none !important;
  box-shadow: none;
}

.video-wrapper:fullscreen .video-hover-effect,
.video-wrapper:-webkit-full-screen .video-hover-effect {
  width: 100%;
  height: 100%;
}

.video-wrapper:fullscreen .video-hover-effect video,
.video-wrapper:-webkit-full-screen .video-hover-effect video {
  object-fit: contain;
}

.video-wrapper:fullscreen .showcase-progress,
.video-wrapper:-webkit-full-screen .showcase-progress {
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
}

.video-wrapper:hover {
  transform: scale(1.2);
  z-index: 10;
  box-shadow: 0 35px 80px rgba(0,0,0,0.35);
}

.video-wrapper:hover video {
  opacity: 0.92;
}

.video-content {
  grid-area: content;
  max-width: min(90%, 520px);
  position: relative;
  z-index: 2;
  padding: clamp(22px, 2.8vw, 34px) clamp(24px, 3.2vw, 40px);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(29, 30, 34, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.35s ease;
}

.video-content::before {
  content: counter(portfolio-video, decimal-leading-zero);
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(29, 30, 34, 0.42);
  margin-bottom: 14px;
  line-height: 1;
}

.video-content:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border-color: rgba(29, 30, 34, 0.12);
}

.video-item:nth-child(odd) .video-content {
  justify-self: start;
  text-align: left;
  margin-left: 10%;
}

.video-item:nth-child(even) .video-content {
  justify-self: end;
  text-align: right;
  margin-right: 10%;
}

.video-item:nth-child(even) .video-content::before {
  width: max-content;
  margin-left: auto;
}

.video-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: rgba(29, 30, 34, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.video-category {
  color: #1d1e22;
  position: relative;
  padding-right: 15px;
}

.video-category:after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #1d1e22;
  border-radius: 50%;
}

.video-content h3 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #141519;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.video-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(29, 30, 34, 0.88);
  line-height: 1.65;
  margin: 0;
  position: relative;
  text-wrap: pretty;
}

.video-cta {
  display: inline-block;
  padding: 10px 25px;
  background: #1d1e22;
  color: #fad768;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.video-cta:hover {
  background: transparent;
  color: #1d1e22;
  border-color: #1d1e22;
}

.play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(29, 30, 34, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  width: 100px;
  height: 100px;
  color: #fad768;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.video-hover-effect.is-paused .play-indicator {
  opacity: 1;
  pointer-events: auto;
}

.video-hover-effect.is-playing:not(.has-played) .play-indicator {
  opacity: 0;
  pointer-events: none;
}

.video-hover-effect.has-played.is-playing .play-indicator {
  opacity: 0;
  pointer-events: none;
}

.play-indicator:focus-visible {
  outline: 2px solid #fad768;
  outline-offset: 4px;
}

.play-indicator svg {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.video-wrapper:hover .video-hover-effect.is-paused .play-indicator {
  transform: translate(-50%, -50%) scale(1.06);
}

.more-projects {
  position: relative;
  z-index: 14;
  width: 100%;
  box-sizing: border-box;
  margin: clamp(-112px, -10vw, -76px) 0 0;
  padding: 0 clamp(20px, 4vw, 48px) clamp(56px, 7vw, 88px);
  background-color: var(--darker-slate);
}

.more-projects__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  color: #fad768;
  text-align: center;
  margin: 0 0 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
  transform: translateY(clamp(-72px, -8vw, -44px));
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.more-projects.is-visible .more-projects__title {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .more-projects__title {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

.more-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.more-projects__item {
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background-color: #1e1f24;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.more-projects__item--reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 0.65s ease var(--reveal-delay, 0s),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s);
}

.more-projects__item--reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease,
    opacity 0.35s ease;
}

.more-projects__item--reveal.is-visible:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(250, 215, 104, 0.28);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

.more-projects__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  padding: 1.75rem 0.75rem 0.65rem;
  background: linear-gradient(to top, rgba(10, 11, 14, 0.88) 0%, rgba(10, 11, 14, 0.35) 62%, transparent 100%);
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease, padding 0.2s ease;
}

/* Скрыть название во время воспроизведения, показать на паузе */
.more-projects__item:has(.video-hover-effect.is-playing) .more-projects__meta {
  opacity: 0;
  visibility: hidden;
}

/* Панель плеера — поднимаем подпись, чтобы не перекрывалась */
.more-projects__item:has(.video-hover-effect.is-paused.has-played) .more-projects__meta,
.more-projects__item:has(.video-hover-effect.showcase-chrome-visible.is-paused) .more-projects__meta {
  padding-bottom: 2.4rem;
}

.more-projects__item-title {
  display: block;
  max-width: 92%;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.more-projects__video,
.more-projects__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: inherit;
}

.more-projects__video {
  transform: none;
  box-shadow: none;
}

.more-projects__item:hover .more-projects__video {
  transform: none;
}

.more-projects__video .video-hover-effect {
  width: 100%;
  height: 100%;
}

.more-projects__video .play-indicator {
  width: 72px;
  height: 72px;
}

.more-projects__video .play-indicator svg {
  width: 32px;
  height: 32px;
}

.more-projects__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 1px dashed rgba(250, 215, 104, 0.2);
}

.more-projects__placeholder-content {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Manrope', sans-serif;
}

.more-projects__placeholder-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.more-projects__placeholder-text {
  margin: 0;
  font-size: 0.9rem;
}

.more-projects__placeholder-subtext {
  margin: 5px 0 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

a.more-projects__continue,
a.more-projects__continue:visited,
a.more-projects__continue:active {
  text-decoration: none;
  color: #fad768;
}

a.more-projects__continue:hover,
a.more-projects__continue:focus-visible {
  color: #ffe89a;
}

.more-projects__continue-text {
  color: inherit;
}

.more-projects__continue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background:
    linear-gradient(145deg, rgba(250, 215, 104, 0.14) 0%, rgba(250, 215, 104, 0.04) 100%),
    #25262a;
  border: 2px solid rgba(250, 215, 104, 0.55);
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
}

.more-projects__item--reveal.more-projects__continue.is-visible:hover {
  background:
    linear-gradient(145deg, rgba(250, 215, 104, 0.22) 0%, rgba(250, 215, 104, 0.08) 100%),
    #2a2b30;
  border-color: #fad768;
  box-shadow: 0 18px 44px rgba(250, 215, 104, 0.12);
}

.more-projects__continue--disabled {
  cursor: default;
  opacity: 0.55;
}

.more-projects__continue-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 215, 104, 0.75);
}

.more-projects__continue-text {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  padding: 0 0.75rem;
}

.more-projects__continue-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.more-projects__continue-icon {
  margin-top: 0.35rem;
  color: currentColor;
  transition: transform 0.35s ease;
}

.more-projects__continue:hover .more-projects__continue-icon {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .more-projects__item--reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .more-projects__item--reveal.is-visible:hover {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .more-projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-wrapper {
    width: 100%;
  }

  .video-item:nth-child(odd) .video-wrapper {
    margin-left: 5%;
  }
}

@media (max-width: 768px) {
  .more-projects {
    margin-top: 0;
  }

  .more-projects__grid {
    grid-template-columns: 1fr;
  }
  
  .video-showcase {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px) clamp(28px, 5vw, 52px);
    gap: clamp(60px, 10vw, 120px);
  }
  
  .video-item,
  .video-item:nth-child(odd),
  .video-item:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas: "video" "content" !important;
    gap: 40px;
  }
  
  .video-wrapper,
  .video-item:nth-child(odd) .video-wrapper,
  .video-item:nth-child(even) .video-wrapper {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: scale(1.05);
    border-radius: 12px;
  }
  
  .video-wrapper:hover {
    transform: scale(1.08);
  }
  
  .video-content {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 16px;
  }

  .video-item:nth-child(odd) .video-content,
  .video-item:nth-child(even) .video-content {
    justify-self: center;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
  
  .video-content h3 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    margin-bottom: 15px;
  }
  
  .video-meta {
    font-size: 0.8rem;
    margin-bottom: 10px;
    justify-content: center;
  }
  
  .play-indicator {
    width: 80px;
    height: 80px;
  }
  
  .play-indicator svg {
    width: 30px;
    height: 30px;
  }
  
  .video-content p {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }
  
  .video-cta {
    padding: 8px 20px;
  }

  .sp-bar {
    padding: 0.35rem 0.45rem max(0.55rem, env(safe-area-inset-bottom, 0px));
  }

  .sp-fs,
  .sp-mute {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
  }

  .sp-volume {
    width: 2.75rem;
    min-height: 2rem;
  }

  .sp-volume::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
  }

  .sp-track-hit {
    min-height: 1.75rem;
  }
}

@media (max-width: 480px) {
  .video-showcase {
    padding: 30px 15px;
    gap: 40px;
  }
  
  .video-item {
    gap: 30px;
  }
  
  .video-content h3 {
    font-size: 1.5rem;
  }
  
  .more-projects__grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .more-projects__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}