@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

:root {
  --transition-box-color: #0a0a0a;
  --transition-box-color-home: #171717;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

/* Dark overlay-style scrollbars shown only while scrolling (+ 1s) */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

html.is-scrolling * {
  scrollbar-color: rgba(132, 132, 132, 0.55) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: transparent;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(132, 132, 132, 0);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}

html.is-scrolling *::-webkit-scrollbar-thumb {
  background-color: rgba(132, 132, 132, 0.55);
}

html.is-scrolling *::-webkit-scrollbar-thumb:hover {
  background-color: rgba(164, 164, 164, 0.72);
}

body {
  display: flex;
  justify-content: center;
  background-color: #0a0a0a;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  background-color: var(--transition-box-color);
  z-index: 1200;
  pointer-events: none;
  transform: translateX(100%);
}

.page-loader.to-home {
  background-color: var(--transition-box-color-home);
}

html.transition-forward .page-loader {
  transform: translateX(0);
  animation: pageRevealToRight 0.62s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

html.transition-back .page-loader {
  transform: translateX(0);
  animation: pageRevealToLeft 0.62s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.page-loader.is-cover {
  pointer-events: auto;
}

@keyframes pageRevealToRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes pageRevealToLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.page-loader.cover-from-left {
  animation: pageCoverFromLeft 0.62s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.page-loader.cover-from-right {
  animation: pageCoverFromRight 0.62s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes pageCoverFromLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes pageCoverFromRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

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

.container {
  display: flex;
  width: min(86%, 1600px);
  min-height: 100vh;
  align-items: flex-start;
  gap: 2rem;
}

.menu {
  width: 180px;
  padding: 22px 8px 22px 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.toggle {
  display: none;
  cursor: pointer;
}

.toggle input {
  display: none;
}

.toggle input + div {
  width: 17px;
  height: 12px;
  position: relative;
}

.toggle input + div div {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.toggle input + div div::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: #fff;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.4s ease;
}

.toggle input + div div span {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
}

.toggle input + div div span:first-child {
  top: 0;
}

.toggle input + div div span:last-child {
  bottom: 0;
}

.toggle input + div div span::before,
.toggle input + div div span::after {
  content: '';
  display: block;
  width: calc(50% + 0.6px);
  height: 2px;
  background: #fff;
  position: absolute;
  backface-visibility: hidden;
  transition: transform 0.5s ease, border-radius 0.3s ease, background 0.4s ease;
}

.toggle input + div div span:first-child::before,
.toggle input + div div span:first-child::after {
  top: 0;
}

.toggle input + div div span:last-child::before,
.toggle input + div div span:last-child::after {
  bottom: 0;
}

.toggle input + div div span::before {
  left: 0;
  border-radius: 1px 0 0 1px;
  transform-origin: 0 50%;
  transform: translate(0, 0) scaleX(1);
}

.toggle input + div div span::after {
  right: 0;
  border-radius: 0 1px 1px 0;
  transform-origin: 100% 50%;
  transform: translate(0, 0) scaleX(1);
}

.toggle input + div svg {
  display: block;
  fill: none;
  stroke: #fff;
  stroke-width: 2px;
  width: 34px;
  height: 34px;
  stroke-linecap: round;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -17px 0 0 -17px;
  stroke-dasharray: 0 82.801 8 82.801;
  stroke-dashoffset: 82.801;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  transform: scale(1);
  transition: stroke-dashoffset 0.5s ease, stroke-dasharray 0.6s ease, transform 0.5s ease, stroke 0.4s ease;
  pointer-events: none;
}

.toggle input + div svg:nth-child(3) {
  transform: rotate(180deg) scale(1);
}

.toggle input:checked + div div {
  transform: rotate(90deg);
}

.toggle input:checked + div div::before {
  opacity: 0;
  transform: scaleX(0.6);
}

.toggle input:checked + div div span:first-child::before {
  transform: rotate(45deg) translate(1.7px, -2.5px) scaleX(1.05);
}

.toggle input:checked + div div span:first-child::after {
  transform: rotate(-45deg) translate(-1.7px, -2.5px) scaleX(1.05);
}

.toggle input:checked + div div span:last-child::before {
  transform: rotate(-45deg) translate(1.7px, 2.5px) scaleX(1.05);
}

.toggle input:checked + div div span:last-child::after {
  transform: rotate(45deg) translate(-1.7px, 2.5px) scaleX(1.05);
}

.toggle input:checked + div svg {
  stroke-dashoffset: 62;
  stroke-dasharray: 0 82.801 62 82.801;
  transform: rotate(90deg);
  stroke: #fff;
}

.toggle input:checked + div svg:nth-child(3) {
  transform: rotate(270deg);
}

.toggle:focus-within {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.menu-overlay {
  display: none;
}

.back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 24px;
  margin-bottom: 22px;
  line-height: 1;
}

.back-icon i {
  font-size: 26px;
}

.categories {
  display: block;
}

.category-item {
  margin-bottom: 7px;
}

.category-item > a {
  display: block;
  cursor: pointer;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 0;
  color: #9d9d9d;
  font-size: 0.95rem;
  transition: color 0.24s ease, transform 0.24s ease, border-bottom-color 0.24s ease;
}

.category-item > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #2b2b2b;
  transform-origin: left center;
  transform: scaleX(1);
  opacity: 1;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, background-color 0.26s ease;
}

.category-item > a:hover,
.category-item.is-active > a {
  color: #fff;
  transform: translateX(4px);
}

.category-item > a:hover::after {
  background: #6f6f6f;
}

.category-item.is-active > a {
  border-bottom-color: transparent;
}

.category-item.is-active > a::after {
  transform: scaleX(0);
  opacity: 0.25;
}

.category-item.is-closing > a::after {
  transform: scaleX(1);
  opacity: 1;
}

.section-submenu {
  display: block;
  margin: 0.35rem 0 0.7rem;
  padding: 0 0 0 0.2rem;
  list-style: none;
  border-bottom: 0;
  padding-bottom: 0.5rem;
  position: relative;
  transform-origin: top center;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  contain: layout paint;
  will-change: max-height, transform, opacity;
  transition:
    max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    margin-bottom 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    padding-bottom 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-submenu::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #2b2b2b;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.category-item.is-active .section-submenu::after {
  transform: scaleX(1);
  opacity: 1;
}

.category-item.is-closing .section-submenu::after {
  transform: scaleX(0);
  opacity: 0;
}

.section-submenu li {
  margin: 0 0 0.36rem;
  opacity: 0;
  transform: translateY(8px);
  will-change: transform, opacity;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.category-item.is-active .section-submenu {
  max-height: 720px;
  margin-top: 0.35rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.category-item.is-active .section-submenu li {
  opacity: 1;
  transform: translateY(0);
}

.category-item.is-closing .section-submenu {
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.category-item.is-closing .section-submenu li {
  opacity: 0;
  transform: translateY(8px);
}

.section-submenu a {
  color: #7f7f7f;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.section-submenu a:hover,
.section-submenu a.active {
  color: #e9e9e9;
  transform: translateX(2px);
}

.section-submenu-hashtag-wrap {
  margin-top: 0.24rem;
  padding-top: 0.18rem;
}

.section-hashtag-filters {
  margin: 0;
  padding: 0 0 0 0.2rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.section-hashtag-filters li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.section-hashtag-filters li + li::before {
  content: '|';
  color: #4d4d4d;
  margin: 0 0.46rem;
  line-height: 1;
}

.section-hashtag-filters a {
  display: inline;
  color: #8f8f8f;
  font-size: 0.72rem;
  letter-spacing: 0.015em;
  line-height: 1.25;
  transform: none;
  transition: color 0.2s ease;
}

.section-hashtag-filters a:hover {
  color: #d4d4d4;
  transform: none;
}

.section-hashtag-filters a.active {
  color: #f2f2f2;
  transform: none;
}

html.no-subcategory-entry .section-submenu {
  transition: none;
}

html.no-subcategory-entry .section-submenu li {
  transition: none;
  opacity: 1;
  transform: translateY(0);
}

.gallery-container {
  flex: 1;
  padding: 22px 0 32px;
}

.gallery-title {
  font-size: clamp(20px, 2.4vw, 30px);
  color: #fff;
  text-align: center;
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-title-media-switch {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.media-title-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.media-title-switch a {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: #8b8b8b;
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

.media-title-switch a:hover {
  color: #c8c8c8;
  transform: translateY(-1px);
}

.media-title-switch a.is-active {
  color: #fff;
  pointer-events: none;
}

.media-title-separator {
  color: #777;
  user-select: none;
}

.masonry {
  column-count: 4;
  column-gap: 1em;
}

.masonry-item {
  break-inside: avoid;
  margin: 0 0 1em;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.js-float-in {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.988);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.js-float-in.js-float-in-static {
  --float-duration: 640ms;
}

.js-float-in.is-visible {
  animation: subpageFloatIn var(--float-duration, 680ms) cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--float-delay, 0ms);
}

.js-float-in.is-exiting {
  animation: subpageFloatOut 220ms cubic-bezier(0.4, 0, 1, 1) both;
  animation-delay: var(--float-exit-delay, 0ms);
  will-change: transform, opacity;
}

@keyframes subpageFloatIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.988);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes subpageFloatOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.992);
  }
}

.masonry img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  --float-duration: 740ms;
}

.content-grid {
  display: grid;
  gap: 1rem;
}

body[data-page="videos"] .content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

body[data-page="videos"] .content-card {
  border-radius: 0;
}

body[data-page="videos"] .content-card-copy {
  padding-bottom: 0.85rem;
}

body[data-page="videos"] .subpage-card-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-page="videos"] .video-detail-sheet {
  display: block;
}

body[data-page="videos"] .video-detail-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

body[data-page="videos"] .video-detail-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.panel {
  background: #101010;
  border: 1px solid #232323;
  border-radius: 8px;
  padding: 1rem;
  --float-duration: 680ms;
}

.content-showcase .js-float-in {
  --float-duration: 700ms;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta,
.post-meta,
.track-meta,
.panel p,
.panel .body {
  color: #b8b8b8;
}

.subpage-card-title {
  margin: 0.72rem 0 0;
  color: #f2f2f2;
  font-size: clamp(1.16rem, 1.18vw, 1.34rem);
  line-height: 1.28;
  font-weight: 620;
}

.subpage-card-role {
  margin: 0.38rem 0 0;
  color: #9d9d9d;
  font-size: clamp(0.78rem, 0.74vw, 0.88rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.subpage-card-body {
  margin: 0.52rem 0 0;
  color: #b8b8b8;
  font-size: clamp(0.9rem, 0.86vw, 0.98rem);
  line-height: 1.52;
}

.track {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.track-cover {
  width: 92px;
  height: 92px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 92px;
}

.track-body {
  flex: 1;
}

audio {
  width: 100%;
  margin-top: 8px;
}

body[data-page="audio"] .audio-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

body[data-page="audio"] .audio-album-card {
  border: 1px solid #2f2f2f;
  background: linear-gradient(165deg, #121212, #0d0d0d);
  color: #fff;
  border-radius: 0;
  padding: 0.75rem;
  text-align: left;
  display: grid;
  gap: 0.52rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body[data-page="audio"] .audio-album-card:hover,
body[data-page="audio"] .audio-album-card:focus-visible {
  border-color: #666;
  transform: translateY(-2px);
  outline: none;
}

body[data-page="audio"] .audio-album-cover-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #131313;
  border: 1px solid #262626;
}

body[data-page="audio"] .audio-album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body[data-page="audio"] .audio-album-cover-placeholder {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a2a2a2;
  font-size: 1.6rem;
}

body[data-page="audio"] .audio-album-name {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body[data-page="audio"] .audio-album-meta {
  font-size: 0.78rem;
  color: #a9a9a9;
}

body[data-page="audio"] .audio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
}

body[data-page="audio"] .audio-lightbox.open {
  display: block;
  animation: lightboxBackdropIn 0.2s ease-out both;
}

body[data-page="audio"] .audio-lightbox.closing {
  display: block;
  animation: lightboxBackdropOut 0.2s ease-out both;
}

body[data-page="audio"] .audio-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

body[data-page="audio"] .audio-lightbox-panel {
  position: relative;
  width: min(1080px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  border: 1px solid #2e2e2e;
  background: #0f0f0f;
  overflow: hidden;
  animation: lightboxFigureIn 0.24s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

body[data-page="audio"] .audio-lightbox.closing .audio-lightbox-panel {
  animation: lightboxFigureOut 0.2s ease-in both;
}

body[data-page="audio"] .audio-lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #f7f7f7;
  font-size: 22px;
  line-height: 1;
  z-index: 5;
  cursor: pointer;
}

body[data-page="audio"] .audio-lightbox-scroll {
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.15rem;
}

body[data-page="audio"] .audio-lightbox-header {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

body[data-page="audio"] .audio-lightbox-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #2d2d2d;
  background: #131313;
}

body[data-page="audio"] .audio-lightbox-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body[data-page="audio"] .audio-lightbox-cover-placeholder {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a2a2a2;
  font-size: 1.8rem;
}

body[data-page="audio"] .audio-lightbox-copy h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="audio"] .audio-lightbox-description {
  margin: 0.55rem 0 0;
  color: #c6c6c6;
  line-height: 1.52;
}

body[data-page="audio"] .audio-lightbox-subcategory {
  margin: 0.5rem 0 0;
  color: #9d9d9d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-page="audio"] .audio-track-list {
  display: grid;
  gap: 0.7rem;
}

body[data-page="audio"] .audio-track-row {
  border: 1px solid #2a2a2a;
  background: #111;
  padding: 0.72rem;
}

body[data-page="audio"] .audio-track-title {
  margin: 0;
  font-size: 0.92rem;
  color: #f2f2f2;
}

body[data-page="audio"] .audio-track-description {
  margin: 0.35rem 0 0;
  color: #adadad;
  font-size: 0.82rem;
  line-height: 1.42;
}

body[data-page="audio"] .audio-track-controls {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 0.45rem;
}

body[data-page="audio"] .audio-license-btn,
body[data-page="audio"] .audio-play-btn,
body[data-page="audio"] .audio-download-btn {
  border: 1px solid #383838;
  background: #171717;
  color: #f4f4f4;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

body[data-page="audio"] .audio-download-btn {
  text-decoration: none;
}

body[data-page="audio"] .audio-license-btn:hover .audio-license-popover,
body[data-page="audio"] .audio-license-btn.is-open .audio-license-popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body[data-page="audio"] .audio-license-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 220px;
  max-width: min(72vw, 320px);
  background: #0d0d0d;
  border: 1px solid #343434;
  color: #d7d7d7;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 0.52rem 0.6rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  pointer-events: none;
  z-index: 4;
}

body[data-page="audio"] .audio-license-popover a {
  color: #cce8ff;
  text-decoration: underline;
}

body[data-page="audio"] .audio-waveform {
  position: relative;
  border: 1px solid #323232;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(208, 208, 208, 0.2) 0,
      rgba(208, 208, 208, 0.2) 2px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0) 6px
    ),
    #141414;
  height: 34px;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

body[data-page="audio"] .audio-waveform-progress {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(239, 239, 239, 0.68) 0,
      rgba(239, 239, 239, 0.68) 2px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0) 6px
    ),
    rgba(255, 255, 255, 0.14);
  transform-origin: left center;
  transform: scaleX(0);
}

body[data-page="audio"] .audio-time {
  color: #a7a7a7;
  font-size: 0.74rem;
  white-space: nowrap;
}

body[data-page="audio"] .audio-track-row audio {
  display: none;
}

.empty-state {
  text-align: center;
  color: #9e9e9e;
  border: 1px dashed #303030;
  border-radius: 8px;
  padding: 1rem;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.78);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
  animation: lightboxBackdropIn 0.2s ease-out both;
}

.lightbox.closing {
  display: flex;
  animation: lightboxBackdropOut 0.2s ease-out both;
}

.lightbox.open .lightbox-img {
  animation: lightboxImageIn 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.lightbox.closing .lightbox-img {
  animation: lightboxImageOut 0.2s ease-in both;
}

body[data-page="photos"] .lightbox.open .lightbox-figure {
  animation: lightboxFigureIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

body[data-page="photos"] .lightbox.closing .lightbox-figure {
  animation: lightboxFigureOut 0.2s ease-in both;
}

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

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

@keyframes lightboxImageIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lightboxImageOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

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

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 34px;
  color: white;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.lightbox-img {
  max-width: 84%;
  max-height: 84%;
  margin: auto;
  border-radius: 4px;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 14px;
  margin-top: -50px;
  color: white;
  font-weight: 600;
  font-size: 20px;
  transition: background-color 0.25s ease;
  border-radius: 3px;
  user-select: none;
  border: 0;
  background: transparent;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.55);
}

body[data-page="photos"] .photo-showroom {
  padding-top: 18px;
  max-width: 1320px;
  margin-inline: auto;
}

body[data-page="photos"] .masonry {
  column-count: 3;
  column-gap: 1rem;
}

body[data-page="photos"] .masonry-item {
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  background: #111;
}

body[data-page="photos"] .masonry img {
  border-radius: 0;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

body[data-page="photos"] .photo-thumb-image {
  opacity: 0;
  transition: opacity 0.28s ease;
}

body[data-page="photos"] .masonry-item.is-loaded .photo-thumb-image {
  opacity: 1;
}

body[data-page="photos"] .photo-thumb-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.06) 0%, rgba(10, 10, 10, 0.2) 100%);
  opacity: 1;
  transition: opacity 0.22s ease;
  pointer-events: none;
  z-index: 1;
}

body[data-page="photos"] .photo-thumb-loading-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.92);
  animation: photoThumbSpin 0.85s linear infinite;
}

body[data-page="photos"] .masonry-item.is-loaded .photo-thumb-loading,
body[data-page="photos"] .masonry-item.is-error .photo-thumb-loading {
  opacity: 0;
}

@keyframes photoThumbSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

body[data-page="photos"] .photo-thumb-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  text-align: left;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 62%, rgba(0, 0, 0, 0.9) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

body[data-page="photos"] .masonry-item.is-loaded:hover .photo-thumb-overlay,
body[data-page="photos"] .masonry-item.is-loaded:focus-visible .photo-thumb-overlay {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="photos"] .photo-thumb-subcategory,
body[data-page="photos"] .photo-thumb-title,
body[data-page="photos"] .photo-thumb-description,
body[data-page="photos"] .photo-thumb-hashtags {
  display: block;
}

body[data-page="photos"] .photo-thumb-subcategory {
  color: #c6c6c6;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

body[data-page="photos"] .photo-thumb-title {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 600;
}

body[data-page="photos"] .photo-thumb-description {
  margin-top: 0.25rem;
  color: #d7d7d7;
  font-size: 0.72rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-page="photos"] .photo-thumb-hashtags {
  margin-top: 0.3rem;
  color: #b7b7b7;
  font-size: 0.67rem;
  line-height: 1.35;
}

body[data-page="photos"] .lightbox {
  --lb-icon-top: 16px;
  --lb-icon-edge: 20px;
  background-color: rgba(0, 0, 0, 0.85);
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0px,
    rgba(0, 0, 0, 0.7) 72px,
    rgba(0, 0, 0, 0) 190px
  );
}

body[data-page="photos"] .lightbox-figure {
  width: min(96vw, 1680px);
  height: 92vh;
  max-height: 92vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

body[data-page="photos"] .lightbox-media {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body[data-page="photos"] .lightbox.open .lightbox-media {
  animation: lightboxImageIn 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

body[data-page="photos"] .lightbox.closing .lightbox-media {
  animation: lightboxImageOut 0.2s ease-in both;
}

body[data-page="photos"] .lightbox.open .lightbox-img,
body[data-page="photos"] .lightbox.closing .lightbox-img {
  animation: none;
}

body[data-page="photos"] .lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  display: block;
  transform: translate3d(var(--lb-pan-x, 0px), var(--lb-pan-y, 0px), 0) scale(var(--lb-scale, 1));
  transform-origin: center center;
  will-change: transform;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  transition: transform 0.16s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body[data-page="photos"] .lightbox.is-panning .lightbox-img {
  transition: none;
}

body[data-page="photos"] .lightbox.is-zoomed .lightbox-img {
  cursor: grab;
}

body[data-page="photos"] .lightbox.is-panning .lightbox-img {
  cursor: grabbing;
}

body[data-page="photos"] .lightbox-close {
  position: fixed;
  top: var(--lb-icon-top);
  right: var(--lb-icon-edge);
  padding: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #f7f7f7;
  z-index: 1002;
}

body[data-page="photos"] .lightbox-close i {
  pointer-events: none;
  display: block;
  line-height: 1;
}

body[data-page="photos"] .lightbox-caption {
  width: min(100%, 960px);
  text-align: center;
  padding: 0 16px 10px;
}

body[data-page="photos"] .lightbox-title {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="photos"] .lightbox-description {
  margin: 0.45rem 0 0;
  color: #c4c4c4;
  line-height: 1.45;
}

body[data-page="photos"] .lightbox-description[hidden] {
  display: none;
}

body[data-page="photos"] .lightbox-hashtags {
  margin: 0.4rem 0 0;
  color: #b7b7b7;
  font-size: 0.84rem;
  line-height: 1.4;
}

body[data-page="photos"] .lightbox-hashtags[hidden] {
  display: none;
}

body[data-page="photos"] .lightbox-controls {
  position: fixed;
  top: var(--lb-icon-top);
  left: var(--lb-icon-edge);
  height: 22px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 0.9rem;
  z-index: 1002;
}

body[data-page="photos"] .lightbox-prev,
body[data-page="photos"] .lightbox-next,
body[data-page="photos"] .lightbox-fullscreen {
  position: static;
  margin: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #f7f7f7;
  font-size: 22px;
  line-height: 1;
  min-width: 0;
  min-height: 0;
  opacity: 0.92;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

body[data-page="photos"] .lightbox-prev i,
body[data-page="photos"] .lightbox-next i,
body[data-page="photos"] .lightbox-fullscreen i {
  display: block;
  line-height: 1;
}

body[data-page="photos"] .lightbox-prev:hover,
body[data-page="photos"] .lightbox-next:hover,
body[data-page="photos"] .lightbox-fullscreen:hover {
  opacity: 1;
  transform: translateY(-1px);
}

body[data-page="photos"] .lightbox-prev:focus-visible,
body[data-page="photos"] .lightbox-next:focus-visible,
body[data-page="photos"] .lightbox-fullscreen:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}
@media (max-width: 1200px) {
  .container {
    width: min(88%, 1200px);
  }

  .masonry {
    column-count: 3;
  }

  body[data-page="photos"] .masonry {
    column-count: 2;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(94%, 1200px);
    gap: 1rem;
  }

  .menu {
    width: 120px;
  }

  .masonry {
    column-count: 2;
  }

  body[data-page="photos"] .masonry {
    column-count: 1;
  }
}

@media (max-width: 680px) {
  body[data-page="videos"] .content-grid {
    grid-template-columns: 1fr;
  }

  .container {
    flex-direction: column;
    width: min(94%, 1200px);
  }

  .menu {
    width: 0;
    position: static;
    padding: 0;
  }

  .toggle {
    display: block;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 270;
  }

  .back-icon {
    position: fixed;
    top: 12px;
    left: 16px;
    margin: 0;
    font-size: 28px;
    z-index: 270;
  }

  .back-icon i {
    font-size: 30px;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.44);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
    z-index: 239;
  }

  .menu.is-open .menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .categories {
    width: min(78vw, 360px);
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    padding: 86px 18px 20px;
    border-left: 1px solid #2d2d2d;
    border-radius: 0;
    background: rgba(11, 11, 11, 0.96);
    box-shadow: -16px 0 30px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1);
    z-index: 250;
  }

  .menu.is-open .categories {
    transform: translateX(0);
  }

  .section-submenu {
    margin-top: 0.3rem;
    padding-left: 0;
  }

  .category-item > a:hover,
  .category-item.is-active > a {
    transform: none;
  }

  .section-submenu a:hover,
  .section-submenu a.active {
    transform: none;
  }

  .gallery-container {
    width: 100%;
    padding-top: 72px;
  }

  .masonry {
    column-count: 1;
  }

  .track {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-page="audio"] .audio-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
  }

  body[data-page="audio"] .audio-lightbox-panel {
    width: calc(100vw - 1rem);
    margin: 0.5rem auto;
    max-height: calc(100vh - 1rem);
  }

  body[data-page="audio"] .audio-lightbox-scroll {
    max-height: calc(100vh - 1rem);
    padding: 0.85rem;
  }

  body[data-page="audio"] .audio-lightbox-header {
    grid-template-columns: 1fr;
  }

  body[data-page="audio"] .audio-lightbox-cover-wrap {
    max-width: 180px;
  }

  body[data-page="audio"] .audio-track-controls {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      \"license play wave\"
      \"time time download\";
  }

  body[data-page="audio"] .audio-license-btn { grid-area: license; }
  body[data-page="audio"] .audio-play-btn { grid-area: play; }
  body[data-page="audio"] .audio-waveform { grid-area: wave; }
  body[data-page="audio"] .audio-time { grid-area: time; }
  body[data-page="audio"] .audio-download-btn { grid-area: download; justify-self: end; }
}
