@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap");

:root {
  --cursor-default: url("images/ui/cursors/arrow.cur"), default;
  --cursor-open-advance: url("images/ui/cursors/help_win95.cur"), pointer;
  --cursor-clickable: url("images/ui/cursors/Cursor_15.cur"), pointer;
  --cursor-resize-ai-videos: url("images/ui/cursors/Cursor_6.cur"), nwse-resize;
  --cursor-text: url("images/ui/cursors/Beam.cur"), text;
}

html, body {
  height: 100%;
  margin: 0;
  cursor: var(--cursor-default);
}

body {
  background: #b7bcc4;
  color: #11161C;
  font-family: "Times New Roman", Times, serif;
}

a[href],
button:not(:disabled),
label[for],
summary,
[role="button"] {
  cursor: var(--cursor-clickable);
}

input,
textarea,
[contenteditable="true"] {
  cursor: var(--cursor-text);
}

.about-launch,
.my-pictures-launch,
[data-music-toggle],
[data-music-prev]:not(:disabled),
[data-music-next]:not(:disabled),
.image-stage img {
  cursor: var(--cursor-open-advance);
}

html[data-pending-category-transition="true"] #main-image {
  visibility: hidden;
}

html[data-pending-category-transition="true"] .image-stage > * {
  visibility: hidden;
}

html[data-pending-category-transition="true"] .image-stage > .image-transition-layer {
  visibility: visible;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  padding: 24px 28px 30px;
  gap: 18px;
}

.sidebar {
  order: 2;
  width: 100%;
  max-width: 960px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  gap: 10px;
  box-sizing: border-box;
}

.sidebar-top {
  display: flex;
  justify-content: center;
  margin-top: calc(-1 * clamp(34px, 5vh, 72px));
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  position: relative;
}

.menu::before {
  content: "";
  display: none;
}

.nav-swipe-hint {
  display: none;
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 25;
  width: 24px !important;
  height: 24px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.58));
  margin: -12px 0 0 -12px;
}

.nav-swipe-hint.is-playing {
  display: block;
  animation: navSwipeHint 4.2s steps(5, end) 0.45s 1 both;
}

.menu a,
.contact a {
  color: #3A4E8A;
  text-decoration: underline;
  font-size: 18px;
  line-height: 1.15;
}

.menu a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu a:hover,
.contact a:hover {
  opacity: 0.72;
}

.menu a.active {
  transform: none;
}

.nav-mark {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.blink-on-load {
  animation: hardBlink 1.1s steps(1, end) 2;
}

.menu a.is-nav-blinking {
  animation: hardBlink 2.45s steps(1, end) 2;
}

@keyframes hardBlink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes navSwipeHint {
  0% {
    transform: translateX(-30px) translateY(0);
    opacity: 0;
  }
  4% {
    transform: translateX(-30px) translateY(0);
    opacity: 0.84;
  }
  18% {
    transform: translateX(30px) translateY(0);
    opacity: 0.84;
  }
  24% {
    transform: translateX(30px) translateY(0);
    opacity: 0;
  }
  30% {
    transform: translateX(-30px) translateY(0);
    opacity: 0;
  }
  34% {
    transform: translateX(-30px) translateY(0);
    opacity: 0.84;
  }
  48% {
    transform: translateX(30px) translateY(0);
    opacity: 0.84;
  }
  54% {
    transform: translateX(30px) translateY(0);
    opacity: 0;
  }
  60% {
    transform: translateX(-30px) translateY(0);
    opacity: 0;
  }
  64% {
    transform: translateX(-30px) translateY(0);
    opacity: 0.84;
  }
  82% {
    transform: translateX(30px) translateY(0);
    opacity: 0.84;
  }
  90% {
    transform: translateX(30px) translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateX(30px) translateY(0);
    opacity: 0;
  }
}

@keyframes imageBufferSweep {
  0% {
    clip-path: inset(0 0 0 0);
    filter: contrast(1.15) brightness(1.04);
  }
  14% {
    clip-path: inset(0 0 0 0);
  }
  28% {
    clip-path: inset(18% 0 0 0);
  }
  42% {
    clip-path: inset(32% 0 0 0);
  }
  56% {
    clip-path: inset(46% 0 0 0);
  }
  70% {
    clip-path: inset(60% 0 0 0);
  }
  84% {
    clip-path: inset(72% 0 0 0);
  }
  92% {
    clip-path: inset(86% 0 0 0);
  }
  100% {
    clip-path: inset(100% 0 0 0);
    filter: contrast(1) brightness(1);
  }
}

@keyframes imageBufferLoad {
  0% {
    clip-path: inset(0 0 100% 0);
    filter: contrast(1.15) brightness(1.04);
  }
  14% {
    clip-path: inset(0 0 100% 0);
  }
  28% {
    clip-path: inset(0 0 82% 0);
  }
  42% {
    clip-path: inset(0 0 68% 0);
  }
  56% {
    clip-path: inset(0 0 54% 0);
  }
  70% {
    clip-path: inset(0 0 40% 0);
  }
  84% {
    clip-path: inset(0 0 28% 0);
  }
  92% {
    clip-path: inset(0 0 14% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
    filter: contrast(1) brightness(1);
  }
}

/* ABOUT BUTTON AS SPRITE */
.about-launch {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 20;
  animation: none !important;
}

.contact {
  position: absolute;
  top: 24px;
  left: 28px;
  right: auto;
  z-index: 20;
  text-align: left;
}

.my-pictures-launch {
  position: absolute;
  top: 74px;
  right: 28px;
  z-index: 20;
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  text-decoration: none;
}

.my-pictures-launch:hover {
  opacity: 0.86;
}

.about-launch.blink-on-load {
  animation: none !important;
}

.about-spin {
  --frame-width: 117.7px;
  --frame-height: 41px;
  --frames: 12;

  width: var(--frame-width);
  height: var(--frame-height);
  display: block;

  background-image: url("images/ui/about-button.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: calc(var(--frame-width) * var(--frames)) var(--frame-height);

  image-rendering: pixelated;
  image-rendering: crisp-edges;

  animation: aboutAnim 1.15s steps(12, end) infinite;
}

.my-pictures-spin {
  --frame-width: 117.7px;
  --frame-height: 41px;
  --frames: 9;

  width: var(--frame-width);
  height: var(--frame-height);
  display: block;

  background-image: url("images/ui/my-pictures-can-breathe-button.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: calc(var(--frame-width) * var(--frames)) var(--frame-height);

  image-rendering: pixelated;
  image-rendering: crisp-edges;

  animation: myPicturesAnim 0.95s steps(9, end) infinite;
}

@keyframes aboutAnim {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(var(--frame-width) * -12) 0;
  }
}

@keyframes myPicturesAnim {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(var(--frame-width) * -9) 0;
  }
}

.stage.ai-videos-page-stage {
  align-items: center;
}

.ai-videos-stage {
  flex-direction: column;
  gap: 18px;
}

.ai-video-player {
  width: 100%;
  height: 100%;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.08s linear;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  pointer-events: none;
  background: #030303;
}

.ai-video-empty {
  opacity: 1;
  font-size: 18px;
  line-height: 1.3;
}

.ai-videos-stage[data-videos-empty="true"] .ai-video-player {
  display: none;
}

.ai-videos-stage[data-videos-empty="false"] .ai-video-empty {
  display: none;
}

.ai-video-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
}

.ai-video-popup[data-open="false"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.ai-video-popup[data-open="true"] {
  visibility: visible;
  opacity: 1;
}

.ai-video-popup[data-open="true"] {
  pointer-events: none;
}

.ai-video-popup[data-open="false"] .ai-video-popup-screen,
.ai-video-popup[data-open="false"] .ai-video-popup-freeze-frame,
.ai-video-popup[data-open="false"] .ai-video-popup-video,
.ai-video-popup[data-open="false"] .ai-video-popup-empty {
  display: none;
}

.ai-video-popup[data-open="true"] .ai-video-popup-screen,
.ai-video-popup[data-open="true"] .ai-video-popup-freeze-frame,
.ai-video-popup[data-open="true"] .ai-video-popup-video,
.ai-video-popup[data-open="true"] .ai-video-popup-empty {
  display: block;
}

.ai-video-popup[data-open="true"] .ai-video-popup-empty {
  display: flex;
}

.ai-video-popup-window {
  width: clamp(320px, 25vw, 430px);
  max-height: calc(100vh - 80px);
  aspect-ratio: 975 / 1773;
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: grab;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.16);
}

.ai-video-popup-window[data-dragging="true"] {
  cursor: grabbing;
}

.ai-video-popup-window[data-resizing="true"] {
  cursor: var(--cursor-resize-ai-videos);
}

.ai-video-popup-window[data-pinching="true"] {
  cursor: var(--cursor-resize-ai-videos);
}

.ai-video-popup-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: url("images/ui/interfaz-ai-videos.png") center center / 100% 100% no-repeat;
}

.ai-video-popup-resize {
  position: absolute;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 4;
  cursor: var(--cursor-resize-ai-videos) !important;
}

.ai-video-popup-resize-nw {
  top: -6px;
  left: -6px;
}

.ai-video-popup-resize-ne {
  top: -6px;
  right: -6px;
}

.ai-video-popup-resize-sw {
  bottom: -6px;
  left: -6px;
}

.ai-video-popup-resize-se {
  bottom: -6px;
  right: -6px;
}

.ai-video-popup-screen {
  position: absolute;
  left: 2.35%;
  top: 4.8%;
  width: 95.2%;
  height: 93.65%;
  overflow: hidden;
  background: #000000;
  cursor: var(--cursor-clickable);
}

.ai-video-popup-close {
  position: absolute;
  top: 0.45%;
  right: 0.15%;
  width: 6.35%;
  height: 2.8%;
  min-width: 28px;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 5;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: var(--cursor-clickable) !important;
}

.ai-video-popup-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ai-video-popup-close:focus-visible {
  outline: 2px solid #163d8a;
  outline-offset: 2px;
}

.ai-video-popup-freeze-frame,
.ai-video-popup-video,
.ai-video-popup-empty {
  position: absolute;
  inset: 0;
}

.ai-video-popup-freeze-frame {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  visibility: hidden;
  background: #000000;
  pointer-events: none;
  z-index: 3;
}

.ai-video-popup-freeze-frame[data-visible="true"] {
  opacity: 1;
  visibility: visible;
}

.ai-video-popup-video {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  visibility: visible;
  object-fit: cover;
  object-position: center center;
  background: #000000;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.12s linear;
}

.ai-video-popup-video.is-frame-ready {
  visibility: visible;
}

.ai-video-popup-video.is-active {
  opacity: 1;
  z-index: 2;
}

.ai-video-popup-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  color: #273547;
  text-align: center;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.ai-video-popup[data-empty="true"] .ai-video-popup-video {
  display: none;
}

.ai-video-popup[data-empty="false"] .ai-video-popup-empty {
  display: none;
}

.stage {
  order: 1;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-stage {
  width: min(100%, 1200px);
  height: 100%;
  max-height: calc(100vh - 180px);
  padding: 12px 16px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.image-stage[data-transition-stage-hidden="true"] > * {
  visibility: hidden;
}

.image-transition-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .ai-video-popup-window {
    width: min(82vw, 380px);
    max-height: calc(100vh - 20px);
  }
}

.global-category-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.image-transition-frame,
.image-transition-old,
.image-transition-new {
  position: absolute;
}

.image-transition-frame {
  z-index: 1;
  overflow: hidden;
}

.image-transition-frame.is-loading-new-image {
  clip-path: inset(0 0 100% 0);
}

.image-transition-old,
.image-transition-new {
  z-index: 1;
}

.image-transition-old {
  display: block;
  object-fit: fill;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.image-transition-new {
  display: block;
  object-fit: fill;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.image-stage img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  transition: transform 140ms ease, filter 140ms ease;
  will-change: transform;
}

.image-stage img.is-touch-sweep-active {
  filter: brightness(1.06) contrast(1.03);
}

.image-stage img.is-category-transitioning {
  visibility: hidden;
}

.image-stage.is-image-loading .image-transition-frame {
  animation: imageBufferSweep 2.3s steps(22, end) 1 forwards;
}

.global-category-transition-overlay.is-image-loading .image-transition-frame {
  animation: imageBufferSweep 2.3s steps(22, end) 1 forwards;
}

.image-stage.is-image-loading .image-transition-frame.is-loading-new-image {
  animation: imageBufferLoad 2.3s steps(22, end) 1 forwards;
}

/* HOME PAGE */
.home-stage {
  min-height: 0;
  justify-content: center;
  align-items: center;
}

/* ABOUT PAGE */
.about-stage {
  justify-content: center;
  align-items: center;
}

.about-text {
  max-width: 520px;
  padding: 16px 8px;
  font-size: 18px;
  line-height: 1.3;
  color: #5f5f5f;
  text-align: center;
}

.about-poem,
.about-body,
.about-signature {
  margin: 0;
  color: #5f5f5f;
}

.about-poem {
  margin-bottom: 48px;
}

.about-body {
  margin-bottom: 48px;
}

.music-player {
  position: fixed;
  right: 35px;
  bottom: 30px;
  z-index: 120;
  display: block;
}

.who-are-you-button {
  position: fixed;
  left: 35px;
  right: auto;
  bottom: 38px;
  z-index: 119;
  width: 85px;
  height: 85px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: var(--cursor-clickable);
}

html:not([data-who-are-you-entry]) .who-are-you-button {
  visibility: hidden;
}

.who-are-you-button:hover {
  opacity: 0.78;
}

.who-are-you-button.is-vanishing {
  pointer-events: none;
  animation: whoAreYouVanish 3.2s ease-out 1 forwards;
}

.who-are-you-button img {
  width: 68%;
  height: 68%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  margin: auto;
}

.who-are-you-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483647;
  display: none;
  pointer-events: none;
  color: #3A4E8A;
  font-family: "Lucida Console", "Andale Mono", "Courier New", monospace;
  font-size: 18px;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(24px, 4px);
}

.who-are-you-tooltip[data-visible="true"] {
  display: block;
}

@keyframes whoAreYouVanish {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.who-are-you-box {
  position: fixed;
  left: 35px;
  bottom: 78px;
  z-index: 121;
  margin: 0;
  padding: 0;
  color: #11161C;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  cursor: default;
}

.who-are-you-box[hidden] {
  display: none;
}

.who-are-you-box.is-vanishing {
  pointer-events: none;
  animation: whoAreYouVanish 3.2s ease-out 1 forwards;
}

.who-are-you-box input,
.who-are-you-box textarea {
  width: 260px;
  height: 22px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: #f3f3f3;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.16);
  color: #11161C;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: #3A4E8A;
  -webkit-font-smoothing: auto;
  text-rendering: auto;
  outline: none;
  caret-color: #3A4E8A;
  cursor: var(--cursor-text);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.who-are-you-box textarea {
  height: 86px;
  padding: 6px 8px;
  line-height: 1.15;
  resize: none;
}

.who-are-you-box input::placeholder,
.who-are-you-box textarea::placeholder {
  color: rgba(17, 22, 28, 0.36);
  opacity: 1;
}

.who-are-you-comment {
  position: fixed;
  left: 35px;
  bottom: 78px;
  z-index: 121;
  display: block;
  width: min(215px, calc(100vw - 70px));
  max-height: 230px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  color: #11161C;
  font-family: "Times New Roman", Times, serif;
  pointer-events: auto;
  scrollbar-width: none;
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.who-are-you-comment::-webkit-scrollbar {
  display: none;
}

.who-are-you-comment[hidden] {
  display: none;
}

.who-are-you-comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.who-are-you-comment-item {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  column-gap: 9px;
  min-width: 0;
}

.who-are-you-avatar {
  width: 27px;
  height: 27px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.who-are-you-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.who-are-you-comment-body {
  min-width: 0;
}

.who-are-you-comment-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.05;
}

.who-are-you-comment-name strong {
  font-weight: 700;
}

.who-are-you-comment-name em {
  font-style: italic;
  font-weight: 400;
}

.who-are-you-comment-date {
  margin: 4px 0 12px;
  color: rgba(17, 22, 28, 0.42);
  font-size: 9px;
  line-height: 1;
}

.who-are-you-comment-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.music-toggle {
  width: 85px;
  height: 85px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 35;
}

.music-toggle:hover,
.music-hit:hover {
  opacity: 0.78;
}

.music-player[data-player-open="false"] .music-toggle:hover {
  cursor: url('images/ui/cursors/Cursor_17.cur'), auto;
}

.music-toggle img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.music-float {
  --player-width: 475px;
  --player-height: calc(var(--player-width) * 451 / 723);
  --music-player-width: var(--player-width);
  --music-player-height: var(--player-height);
  position: fixed;
  right: 105px;
  bottom: 43px;
  width: var(--player-width);
  height: var(--player-height);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease;
  user-select: none;
  touch-action: none;
}

.music-player[data-player-open="true"] .music-float {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.music-float::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  background: url("images/ui/music/muesca-resize.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.music-player-base,
.music-screen-image,
.music-player-shadow,
.music-control-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.music-player-base {
  z-index: 1;
}

.music-screen-image {
  z-index: 4;
}

.music-display {
  position: absolute;
  left: 36.8%;
  top: 36.15%;
  width: 24.9%;
  height: 9.25%;
  z-index: 5;
  color: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  font-family: "Orbitron", "Courier New", monospace;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.music-volume {
  position: absolute;
  left: 36.65%;
  top: 46.35%;
  width: 24.2%;
  height: 2.35%;
  z-index: 7;
}

.music-volume-track {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.4%;
  cursor: ew-resize;
}

.music-volume-step {
  display: block;
  flex: 1 1 0;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(180deg, #d8d4d2 0%, #bdb6b1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(90, 90, 90, 0.18);
  transition: background 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  opacity: 0.95;
}

.music-volume-step.is-active {
  background: linear-gradient(180deg, #4a4a4a 0%, #2f2f2f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.music-time-row,
.music-track-title,
.music-track-meta {
  margin: 0;
}

.music-time-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 6px;
  transform: translateX(-3.2%);
}

.music-current-time,
.music-duration {
  font-variant-numeric: tabular-nums;
}

.music-current-time {
  font-size: clamp(8px, calc(var(--music-player-width) * 0.0253), 18px);
  line-height: 0.88;
  font-weight: 700;
}

.music-duration {
  display: none;
}

.music-track-title {
  width: 100%;
  overflow: hidden;
  text-align: center;
  font-size: clamp(7px, calc(var(--music-player-width) * 0.017), 12px);
  line-height: 1.05;
  font-weight: 700;
  transform: translate(-3.2%, 2px);
  position: relative;
  box-sizing: border-box;
  padding: 1px 0;
  scrollbar-width: none;
}

.music-track-title::-webkit-scrollbar {
  display: none;
}

.music-track-title-text {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
}

.music-track-title[data-title-overflow="true"] {
  text-align: left;
  padding-left: 6%;
  transform: translateY(2px);
}

.music-track-title[data-title-overflow="true"] .music-track-title-text {
  padding-right: 10px;
  animation: musicTitleScroll var(--title-scroll-duration, 8s) linear infinite alternate;
}

@keyframes musicTitleScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(var(--title-scroll-shift, 0px) * -1));
  }
}

.music-track-meta {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(4px, calc(var(--music-player-width) * 0.0095), 7px);
  line-height: 1;
  font-weight: 700;
  opacity: 0.88;
  text-align: left;
  transform: translateY(0);
}

.music-control-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.music-player-shadow {
  z-index: 3;
}

.music-hit-area {
  position: absolute;
  inset: 0;
  z-index: 6;
}

button.music-resize-handle:not(:disabled) {
  position: absolute;
  left: 70.26%;
  top: 94.12%;
  width: clamp(18px, 3.6%, 26px);
  height: clamp(18px, 4.8%, 26px);
  transform: translate(-50%, -50%);
  z-index: 9;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: var(--cursor-resize-ai-videos);
}

button.music-resize-handle:not(:disabled):hover,
button.music-resize-handle:not(:disabled):focus-visible,
button.music-resize-handle:not(:disabled):active {
  cursor: var(--cursor-resize-ai-videos);
}

.music-resize-handle:hover {
  opacity: 0.9;
}

.music-player[data-resizing="true"] .music-resize-handle {
  cursor: var(--cursor-resize-ai-videos);
}

.music-hit {
  position: absolute;
  width: 7.4%;
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  transform: translate(-50%, -50%);
}

.music-hit:disabled {
  cursor: default;
  opacity: 0.35;
}

.music-hit-prev {
  left: 36.169%;
  top: 56.098%;
  width: 7.1%;
}

.music-hit-play {
  left: 42.739%;
  top: 57.539%;
  width: 7.5%;
}

.music-hit-pause {
  left: 49.101%;
  top: 60.421%;
  width: 7.3%;
}

.music-hit-stop {
  left: 55.74%;
  top: 57.317%;
  width: 7.6%;
}

.music-hit-next {
  left: 62.725%;
  top: 56.098%;
  width: 7.2%;
}

.music-player[data-dragging="true"] .music-drag-layer {
  cursor: grabbing;
}

@media (max-width: 900px) {
  html,
  body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body {
    margin: 0;
    position: fixed;
    inset: 0;
    width: 100%;
    touch-action: none;
  }

  .page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100svh;
    min-height: 100svh;
    padding: 0;
    gap: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .music-player {
    right: 20px;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .who-are-you-button {
    left: 20px;
    right: auto;
    bottom: calc(26px + env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
  }

  .who-are-you-tooltip {
    font-size: 16px;
  }

  .who-are-you-box {
    left: 20px;
    bottom: calc(50px + env(safe-area-inset-bottom));
    font-size: 16px;
    gap: 9px;
  }

  .who-are-you-box input {
    width: min(260px, calc(100vw - 40px));
    height: 21px;
    font-size: 16px;
  }

  .who-are-you-box textarea {
    width: min(260px, calc(100vw - 40px));
    height: 78px;
    font-size: 16px;
  }

  .who-are-you-comment {
    left: 20px;
    bottom: calc(50px + env(safe-area-inset-bottom));
    width: min(195px, calc(100vw - 40px));
    max-height: 188px;
    padding-block: 15px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15px, #000 calc(100% - 15px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 15px, #000 calc(100% - 15px), transparent 100%);
  }

  .who-are-you-comment-list {
    gap: 12px;
  }

  .who-are-you-comment-item {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 7px;
  }

  .who-are-you-avatar {
    width: 22px;
    height: 22px;
  }

  .who-are-you-comment-name,
  .who-are-you-comment-text {
    font-size: 12px;
  }

  .who-are-you-comment-date {
    font-size: 8px;
  }

  .music-toggle {
    width: 58px;
    height: 58px;
  }

  .music-float {
    --player-width: min(64vw, 275px);
    right: 72px;
    bottom: calc(22px + env(safe-area-inset-bottom));
  }

  .music-resize-handle {
    display: none;
  }

  .music-float::after {
    display: none;
  }

  .about-launch {
    top: calc(18px + env(safe-area-inset-top));
    right: 20px;
  }

  .contact {
    top: calc(18px + env(safe-area-inset-top));
    left: 20px;
    right: auto;
    text-align: left;
  }

  .stage {
    order: 1;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    touch-action: manipulation;
  }

  .stage.ai-videos-page-stage {
    align-items: flex-start;
  }

  .image-stage {
    width: 100vw;
    height: 100%;
    max-height: none;
    padding: 28px 20px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: manipulation;
  }

  .image-stage img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
  }

  .image-stage img.is-portrait {
  object-fit: contain;
}

  .image-stage img.is-landscape {
    object-fit: contain;
  }

  .sidebar {
    order: 2;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  .sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }

  .sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    margin: 0;
  }

  .menu::before {
    display: none;
  }

  .menu a,
  .contact a {
    font-size: 16px;
    line-height: 1.12;
  }

  .menu a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    text-align: center;
    gap: 6px;
  }

  .menu a.active {
    transform: none;
  }

  .nav-mark {
    width: 14px;
    height: 14px;
    order: 0;
    margin-left: 0;
  }

  .about-spin {
    background-image: url("images/mobile/ui/about-button.png");
  }

  .my-pictures-spin {
    background-image: url("images/mobile/ui/my-pictures-can-breathe-button.png");
  }

  .about-launch {
    line-height: 0;
    margin: 0;
  }

  .contact {
    margin: 0;
    top: calc(18px + env(safe-area-inset-top));
    left: 20px;
    right: auto;
    text-align: left;
  }

  .my-pictures-launch {
    position: fixed !important;
    top: calc(18px + env(safe-area-inset-top)) !important;
    right: calc(20px + 106.2px + 6px) !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 20;
    margin: 0;
  }

  .about-spin {
    --frame-width: 106.2px;
    --frame-height: 37px;
    width: var(--frame-width);
    height: var(--frame-height);
    background-size: calc(var(--frame-width) * 12) var(--frame-height);
  }

  .my-pictures-spin {
    --frame-width: 106.2px;
    --frame-height: 37px;
  }

  .ai-video-empty {
    font-size: 16px;
  }

  .ai-video-window {
    --popup-video-width: min(62vw, 336px);
    top: calc(50% - 12px);
    width: calc(var(--popup-video-width) + 34px);
  }

  .ai-video-window-body {
    padding: 10px 10px 9px;
  }

  .ai-video-window-panel {
    padding: 8px;
  }

  .ai-video-window-titlebar {
    min-height: 26px;
    font-size: 12px;
  }


  /* HOME PAGE */
  .home-stage {
    width: 100%;
    height: 100%;
    padding: 28px 20px 0;
    justify-content: center;
    align-items: center;
  }

  /* ABOUT PAGE */
  .about-stage {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: calc(96px + env(safe-area-inset-top)) 20px 10px;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .about-text {
    max-width: 100%;
    width: 100%;
    padding: 0;
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
  }

  .about-poem {
    margin-bottom: 40px;
  }

  .about-body {
    margin-bottom: 40px;
  }
}
