@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgb(10 10 10 / 85%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}

#logo {
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

#main-nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 50%);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgb(255 255 255 / 6%);
}

.nav-link.active {
  color: #fff;
  background: rgb(255 255 255 / 10%);
}

#header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.external-link {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 40%);
  text-decoration: none;
  transition: color 0.2s;
}

.external-link:hover {
  color: #fff;
}

.immich-icon {
  width: 1.3rem;
  height: 1.3rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}

#gallery-view {
  padding-top: 60px;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 1.5s ease;
}

#gallery-view.visible {
  opacity: 1;
}

#gallery-hero {
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

#gallery-title {
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

#gallery-description {
  font-weight: 300;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 45%);
  max-width: 600px;
  margin: 0 auto 0.5rem;
  line-height: 1.5;
}

#gallery-count {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 25%);
}

#gallery-grid {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 60px);
  padding: 2rem;
}

.photo-card {
  position: absolute;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.25, 0, 0.25, 1), box-shadow 0.4s ease;
  transform-origin: center center;
  box-shadow: 0 4px 30px rgb(0 0 0 / 50%);
}

.photo-card:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 8px 50px rgb(0 0 0 / 80%);
  z-index: 10;
}

.photo-card img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.photo-card img.loaded {
  opacity: 1;
}

.photo-card .item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 70%) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1rem;
}

.photo-card:hover .item-overlay {
  opacity: 1;
}

.item-overlay .item-title {
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #fff;
}

#film-albums {
  padding: 0 2rem 4rem;
}

#film-albums h2 {
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 60%);
  margin-bottom: 1rem;
}

#album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.album-card {
  border: 1px solid rgb(255 255 255 / 10%);
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.album-card:hover {
  border-color: rgb(255 255 255 / 25%);
  background: rgb(255 255 255 / 3%);
}

.album-card .album-name {
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0.3rem;
}

.album-card .album-count {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 35%);
}

.hidden {
  display: none !important;
}

#landing {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#landing-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

#landing-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 2;
}

#landing-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  gap: 1.5rem;
}

.landing-btn {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 30%);
  padding: 0.7rem 2.5rem;
  width: 220px;
  text-align: center;
  box-sizing: border-box;
  opacity: 0;
  transition: border-color 0.3s, background 0.3s, opacity 0.5s ease;
}

#landing-overlay:hover .landing-btn {
  opacity: 1;
}

#upload-btn {
  opacity: 0.5;
  color: rgb(255 255 255 / 50%);
  border-color: rgb(255 255 255 / 15%);
}

#landing-overlay:hover #upload-btn {
  opacity: 1;
  color: #fff;
  border-color: rgb(255 255 255 / 30%);
}

.landing-btn:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 10%);
}

#landing.fade-to-black {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgb(0 0 0 / 95%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#lb-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 210;
  background: none;
  border: none;
  color: rgb(255 255 255 / 60%);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

#lb-close:hover {
  color: #fff;
}

#lb-prev,
#lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 210;
  background: none;
  border: none;
  color: rgb(255 255 255 / 40%);
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 1rem;
}

#lb-prev { left: 0.5rem; }
#lb-next { right: 0.5rem; }

#lb-prev:hover,
#lb-next:hover {
  color: #fff;
}

#lb-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

#lb-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  user-select: none;
}

#lb-info {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

#lb-title {
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 70%);
}

#lb-caption {
  font-weight: 300;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 40%);
  max-width: 600px;
  text-align: center;
  line-height: 1.4;
}

#lb-counter {
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 20%);
  margin-top: 0.3rem;
}

#uploads-view {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#uploads-image {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.25, 0, 0.25, 1), opacity 0.6s ease;
  user-select: none;
}

#uploads-image.zoom-fade {
  transform: scale(1.08);
  opacity: 0;
}

#uploads-title {
  position: absolute;
  bottom: 6.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

#uploads-view:hover #uploads-title {
  opacity: 1;
}

#uploads-counter {
  position: absolute;
  bottom: 5.8rem;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 20%);
  pointer-events: none;
}

.uploads-fav-btn {
  position: absolute;
  top: 1.4rem;
  right: 2rem;
  z-index: 320;
  background: transparent;
  border: none;
  color: rgb(255 255 255 / 60%);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s, transform 0.2s;
}

.uploads-fav-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.uploads-fav-btn.active {
  color: #ffd24a;
}

.uploads-fav-btn.hidden {
  display: none;
}

.uploads-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.5rem 0.8rem;
  box-sizing: border-box;
  overflow-x: auto;
  background: linear-gradient(to top, rgb(0 0 0 / 75%), rgb(0 0 0 / 0%));
  scrollbar-width: thin;
  z-index: 315;
  cursor: default;
}

.uploads-strip::-webkit-scrollbar {
  height: 5px;
}

.uploads-strip::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 20%);
}

.uploads-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 4rem;
  cursor: pointer;
  border: 1px solid rgb(255 255 255 / 12%);
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
  overflow: hidden;
}

.uploads-thumb:hover {
  opacity: 0.85;
}

.uploads-thumb.active {
  opacity: 1;
  border-color: #fff;
}

.uploads-thumb.fav {
  border-color: #ffd24a;
}

.uploads-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uploads-thumb-star {
  position: absolute;
  top: 1px;
  right: 3px;
  color: #ffd24a;
  font-size: 0.8rem;
  text-shadow: 0 0 3px rgb(0 0 0 / 80%);
  pointer-events: none;
}

.landing-fav-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
  pointer-events: none;
}

.landing-fav-layer.visible {
  opacity: 1;
}

#uploads-back {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 30%);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 310;
  opacity: 0;
  transition: color 0.2s, opacity 0.4s;
}

#uploads-view:hover #uploads-back {
  opacity: 1;
}

#uploads-back:hover {
  color: #fff;
}

@media (max-width: 768px) {
  #site-header {
    padding: 0 1rem;
    height: 50px;
  }

  #landing-buttons {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-template-rows: none;
    gap: 1rem;
  }

  .landing-btn {
    width: 240px;
    max-width: 80vw;
  }

  #main-nav {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
  }

  #gallery-view {
    padding-top: 50px;
  }

  #gallery-hero {
    padding: 2rem 1rem 1rem;
  }

  #gallery-grid {
    padding: 1rem;
  }

  .photo-card img {
    max-height: 50vh;
  }

  #lb-prev { left: 0; }
  #lb-next { right: 0; }
  #lb-prev, #lb-next { font-size: 2rem; }
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  border: 1px solid rgb(255 255 255 / 10%);
  padding: 2.5rem;
}

.upload-card {
  max-width: 600px;
}

.auth-title {
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
}

.auth-subtitle {
  font-weight: 300;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 45%);
  margin-bottom: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-field label {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 50%);
}

.auth-field input {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: #e0e0e0;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 12%);
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  border-color: rgb(255 255 255 / 30%);
}

.auth-submit {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 30%);
  padding: 0.7rem 2rem;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  margin-top: 0.5rem;
}

.auth-submit:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 10%);
}

.auth-submit.small {
  font-size: 0.7rem;
  padding: 0.4rem 1.2rem;
}

.auth-error {
  font-weight: 300;
  font-size: 0.8rem;
  color: #e05050;
  min-height: 1.2rem;
}

.auth-success {
  font-weight: 300;
  font-size: 0.8rem;
  color: #50c050;
  min-height: 1.2rem;
}

.auth-back {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 35%);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-back:hover {
  color: #fff;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#upload-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.upload-item {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.upload-item input[type="file"] {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 60%);
  flex: 1;
}

.upload-item input[type="file"]::file-selector-button {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 20%);
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  margin-right: 0.6rem;
  transition: border-color 0.2s;
}

.upload-item input[type="file"]::file-selector-button:hover {
  border-color: rgb(255 255 255 / 50%);
}

.upload-item input[type="text"] {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: #e0e0e0;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 12%);
  padding: 0.4rem 0.6rem;
  outline: none;
  width: 140px;
  transition: border-color 0.2s;
}

.upload-item input[type="text"]:focus {
  border-color: rgb(255 255 255 / 30%);
}

.upload-remove {
  background: none;
  border: none;
  color: rgb(255 255 255 / 30%);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
  transition: color 0.2s;
}

.upload-remove:hover {
  color: #e05050;
}

.upload-add-row {
  display: flex;
  justify-content: flex-start;
}

.upload-progress-wrap {
  width: 100%;
  height: 4px;
  background: rgb(255 255 255 / 10%);
  margin-top: 0.4rem;
  border-radius: 2px;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: rgb(255 255 255 / 50%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.logout-form {
  margin: 0;
  padding: 0;
}

.logout-form .auth-back {
  margin-top: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

.music-page {
  min-height: 100vh;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 8rem;
}

.music-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.music-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
  border: 1px solid rgb(255 255 255 / 10%);
  padding: 2.5rem;
}

.music-content {
  position: relative;
  overflow: hidden;
}

.music-content.hidden {
  display: none;
}

.music-image {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  max-width: 35vw;
  max-height: 60vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  z-index: 0;
}

.music-page.playing .music-image {
  opacity: 0.12;
}

.music-list-wrap {
  position: relative;
  z-index: 10;
  transition: transform 1.2s cubic-bezier(0.25, 0, 0.25, 1), max-width 1.2s cubic-bezier(0.25, 0, 0.25, 1);
}

.music-page.link-only .music-list {
  display: none;
}

.music-page.playing .music-list-wrap {
  transform: translateX(-15%);
  max-width: 70%;
}

.music-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.music-header-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.music-nav-link {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 25%);
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 10%);
  padding: 0.2rem 0.8rem;
  transition: color 0.2s, border-color 0.2s;
}

.music-nav-link:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 40%);
}

.music-title {
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.music-back {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 35%);
  text-decoration: none;
  transition: color 0.2s;
}

.music-back:hover {
  color: #fff;
}

.music-status {
  font-weight: 300;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 40%);
  margin-bottom: 1rem;
}

.music-list {
  display: flex;
  flex-direction: column;
}

.music-album-header {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 30%);
  padding: 1rem 0 0.4rem;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.album-download {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 15%);
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 10%);
  padding: 0.2rem 0.6rem;
  transition: color 0.2s, border-color 0.2s;
}

.album-download:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 40%);
}

.music-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.3rem;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 3px;
}

.music-track:hover {
  background: rgb(255 255 255 / 4%);
}

.music-track.active {
  background: rgb(255 255 255 / 8%);
}

.track-num {
  font-weight: 300;
  font-size: 0.7rem;
  color: rgb(255 255 255 / 25%);
  width: 2rem;
  text-align: right;
}

.track-title {
  font-weight: 300;
  font-size: 0.85rem;
  color: #e0e0e0;
  flex: 1;
}

.music-track.active .track-title {
  color: #fff;
}

.track-badge {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 25%);
  border: 1px solid rgb(255 255 255 / 10%);
  padding: 0.1rem 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.track-duration {
  font-weight: 300;
  font-size: 0.7rem;
  color: rgb(255 255 255 / 25%);
}

.music-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(10 10 10 / 95%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgb(255 255 255 / 6%);
  padding: 0.8rem 2rem;
  z-index: 400;
}

.music-player-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
}

.player-title {
  font-weight: 300;
  font-size: 0.85rem;
  color: #fff;
}

.player-artist {
  font-weight: 300;
  font-size: 0.7rem;
  color: rgb(255 255 255 / 45%);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.player-btn {
  background: none;
  border: none;
  color: rgb(255 255 255 / 50%);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.2rem;
}

.player-btn:hover {
  color: #fff;
}

.download-btn {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(255 255 255 / 30%);
  border: 1px solid rgb(255 255 255 / 15%);
  padding: 0.25rem 0.7rem;
  transition: color 0.2s, border-color 0.2s;
}

.download-btn:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 50%);
}

.share-btn {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 30%);
  border: 1px solid rgb(255 255 255 / 15%);
  padding: 0.25rem 0.7rem;
  transition: color 0.2s, border-color 0.2s;
}

.share-btn:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 50%);
}

.play-btn {
  font-size: 1.2rem;
}

.player-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.player-time {
  font-weight: 300;
  font-size: 0.65rem;
  color: rgb(255 255 255 / 30%);
  min-width: 3rem;
}

.player-progress-bar {
  flex: 1;
  height: 3px;
  background: rgb(255 255 255 / 10%);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: rgb(255 255 255 / 40%);
  border-radius: 2px;
  transition: width 0.2s linear;
}

#landing-footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 150;
}

.footer-link {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 20%);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.about-body {
  background: #080d18;
  margin: 0;
  overflow: hidden;
}

.about-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #080d18;
}

.about-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.about-bg-layer.visible {
  opacity: 1;
}

.about-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgb(8 13 24 / 82%);
}

.about-scene {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  position: relative;
  z-index: 2;
}

.about-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(60 120 255 / 12%) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.about-card {
  width: 280px;
  height: 360px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), width 0.8s cubic-bezier(0.4, 0, 0.2, 1), height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.about-card.flipped {
  transform: rotateY(180deg) !important;
  width: 840px;
  height: 360px;
}

.about-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}

.about-card-front {
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 8%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 40px rgb(40 80 200 / 15%),
    0 20px 60px rgb(0 0 0 / 40%),
    inset 0 1px 0 rgb(255 255 255 / 6%);
}

.about-photo {
  width: 85%;
  height: 80%;
  object-fit: cover;
  border-radius: 4px;
}

.about-click-hint {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 25%);
  margin-top: 1rem;
  animation: hint-fade 3s ease-in-out infinite;
}

@keyframes hint-fade {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.6; }
}

.about-card-back {
  background: rgb(8 13 24 / 95%);
  border: 1px solid rgb(60 120 255 / 12%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem;
  box-shadow:
    0 0 40px rgb(40 80 200 / 15%),
    0 20px 60px rgb(0 0 0 / 40%);
  visibility: hidden;
}

.about-card.flipped .about-card-back {
  visibility: visible;
}

.about-card.flipped .about-simple-text {
  animation: text-reveal 0.6s ease forwards;
  animation-delay: 0.2s;
}

@keyframes text-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-simple-text {
  opacity: 0;
  transform: translateY(20px);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 75%);
  text-align: center;
}

.about-back-link {
  position: fixed;
  bottom: 1.5rem;
  left: 2rem;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 25%);
  text-decoration: none;
  transition: color 0.2s;
  z-index: 10;
}

.about-back-link:hover {
  color: #fff;
}

.jams-page {
  min-height: 100vh;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 8rem;
}

.jam-upload-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e0e0e0;
  background: rgb(255 255 255 / 3%);
  border: 1px dashed rgb(255 255 255 / 25%);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.jam-upload-banner:hover {
  border-color: rgb(255 255 255 / 60%);
  background: rgb(255 255 255 / 8%);
  color: #fff;
}

.jam-upload-banner-plus {
  font-size: 1.1rem;
  line-height: 1;
}

.jam-share-link-btn {
  display: block;
  margin: -0.6rem 0 1.5rem auto;
  padding: 0.5rem 1.1rem;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 70%);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 20%);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.jam-share-link-btn:hover {
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 6%);
  color: #fff;
}

.jam-share-link-btn.hidden {
  display: none;
}

.user-jams-section {
  margin-top: 3rem;
}

.user-jams-section.hidden {
  display: none;
}

.user-jams-heading {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 55%);
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.jam-upload-modal,
.jam-video-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 80%);
  backdrop-filter: blur(6px);
}

.jam-upload-modal.hidden,
.jam-video-modal.hidden {
  display: none;
}

.jam-upload-dialog {
  position: relative;
  width: 420px;
  max-width: 90vw;
  background: #0d0d0d;
  border: 1px solid rgb(255 255 255 / 12%);
  padding: 2rem;
  box-sizing: border-box;
}

.jam-upload-close,
.jam-video-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  color: rgb(255 255 255 / 50%);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.jam-upload-close:hover,
.jam-video-close:hover {
  color: #fff;
}

.jam-upload-title {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 0 1.5rem;
}

.jam-upload-form .auth-field {
  margin-bottom: 1rem;
}

.jam-upload-form .auth-field.hidden {
  display: none;
}

.jam-upload-guest-note {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: rgb(255 255 255 / 55%);
  margin: -0.8rem 0 1.4rem;
}

.jam-upload-guest-note.hidden {
  display: none;
}

.jam-upload-progress {
  margin: 0.5rem 0 1rem;
}

.jam-upload-progress.hidden {
  display: none;
}

.jam-upload-progress-track {
  width: 100%;
  height: 6px;
  background: rgb(255 255 255 / 8%);
  overflow: hidden;
}

.jam-upload-progress-bar {
  height: 100%;
  width: 0%;
  background: rgb(255 255 255 / 70%);
  transition: width 0.2s ease;
}

.jam-upload-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 55%);
}

.jam-upload-progress-meta #jam-upload-progress-pct {
  color: #fff;
  font-weight: 400;
}

.jam-upload-progress-note {
  margin-top: 0.3rem;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: rgb(255 255 255 / 40%);
}

.jam-video-close {
  top: 1.2rem;
  right: 1.6rem;
  font-size: 2.2rem;
  z-index: 410;
}

.jam-video-player {
  max-width: 90vw;
  max-height: 80vh;
  background: #000;
  border: 1px solid rgb(255 255 255 / 8%);
}

.jam-video-title {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 70%);
}

.jams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.jam-tile {
  height: 240px;
  cursor: pointer;
}

.jam-tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.jam-tile:hover .jam-tile-inner {
  transform: rotateY(180deg);
}

.jam-tile-active .jam-tile-inner {
  transform: rotateY(180deg);
}

.jam-tile-front,
.jam-tile-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
}

.jam-tile-front {
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow:
    0 0 30px rgb(40 80 200 / 6%),
    0 10px 30px rgb(0 0 0 / 20%);
}

.jam-tile:hover .jam-tile-front {
  border-color: rgb(255 255 255 / 15%);
  box-shadow:
    0 0 30px rgb(40 80 200 / 10%),
    0 10px 30px rgb(0 0 0 / 30%);
}

.jam-tile-active .jam-tile-front {
  border-color: rgb(255 255 255 / 20%);
  box-shadow:
    0 0 40px rgb(40 80 200 / 15%),
    0 10px 30px rgb(0 0 0 / 30%);
}

.jam-tile-title {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: #e0e0e0;
  text-align: center;
  word-break: break-word;
  line-height: 1.3;
}

.jam-tile-active .jam-tile-title {
  color: #fff;
}

.jam-tile-sub {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  color: rgb(255 255 255 / 30%);
  text-align: center;
}

.jam-tile-dur {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 18%);
  margin-top: 0.5rem;
  border: 1px solid rgb(255 255 255 / 8%);
  padding: 0.15rem 0.5rem;
}

.jam-tile-back {
  background: rgb(8 13 24 / 95%);
  border: 1px solid rgb(60 120 255 / 12%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow:
    0 0 30px rgb(40 80 200 / 8%),
    0 10px 30px rgb(0 0 0 / 30%);
}

.jam-tile-img {
  width: 90%;
  height: 70%;
  object-fit: cover;
  border-radius: 4px;
}

.jam-tile-play-label {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 35%);
}

.jam-focus-mode .jam-tile:not(.jam-tile-focused) {
  opacity: 0.3;
  transform: scale(0.95);
  transition: opacity 0.4s, transform 0.4s;
}

.media-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.media-content {
  display: flex;
  width: 100%;
  height: 100vh;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.media-content.hidden {
  display: none;
}

.media-split {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.25, 0, 0.25, 1);
}

.media-split::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 10%);
  transition: border-color 0.4s, background 0.4s;
}

.media-split:hover::before {
  border-color: rgb(255 255 255 / 25%);
  background: rgb(255 255 255 / 3%);
}

.media-split:hover {
  flex: 1.8;
}

.media-split:hover + .media-split,
.media-split:has(+ .media-split:hover) {
  flex: 0.6;
}

.media-split-label {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 60%);
  position: relative;
  z-index: 1;
  transition: color 0.4s, transform 0.6s cubic-bezier(0.25, 0, 0.25, 1), letter-spacing 0.6s;
  white-space: nowrap;
}

.media-split:hover .media-split-label {
  color: #fff;
  letter-spacing: 0.18em;
}

.media-split-left:hover .media-split-label {
  transform: translateX(-8%);
}

.media-split-right:hover .media-split-label {
  transform: translateX(8%);
}

.media-back {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 25%);
  text-decoration: none;
  transition: color 0.2s;
  z-index: 10;
}

.media-back:hover {
  color: #fff;
}

.videos-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.videos-bg.visible {
  opacity: 1;
}

.videos-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgb(10 10 10 / 82%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.videos-bg-overlay.visible {
  opacity: 1;
}

.videos-page {
  min-height: 100vh;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 8rem;
  position: relative;
  z-index: 2;
}

.videos-content.hidden {
  display: none;
}

.videos-tree {
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(255 255 255 / 8%);
}

.video-folder-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  transition: background 0.2s;
}

.video-folder-head:hover {
  background: rgb(255 255 255 / 4%);
}

.video-folder-arrow {
  font-size: 0.7rem;
  color: rgb(255 255 255 / 40%);
  width: 0.8em;
  flex-shrink: 0;
}

.video-folder-name {
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: #e0e0e0;
  flex: 1;
}

.video-folder-count {
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: rgb(255 255 255 / 30%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}

.video-folder-body.hidden {
  display: none;
}

.video-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  transition: border-color 0.2s, background 0.2s;
}

.video-item-thumb {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 40px;
  background: #000;
  border: 1px solid rgb(255 255 255 / 8%);
  overflow: visible;
  z-index: 1;
}

.video-item-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: left center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-item:hover {
  z-index: 5;
  background: rgb(255 255 255 / 4%);
}

.video-item:hover .video-item-thumb {
  z-index: 5;
}

.video-item:hover .video-item-thumb img {
  transform: scale(4);
  box-shadow: 0 8px 30px rgb(0 0 0 / 70%);
  border: 1px solid rgb(255 255 255 / 15%);
}

.video-item-thumb-empty {
  background: rgb(255 255 255 / 4%);
}

.admin-page {
  min-height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
}

.admin-content.hidden {
  display: none;
}

.admin-total {
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 1.5rem 0 2rem;
}

.admin-section-title {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 40%);
  margin: 2rem 0 1rem;
}

.admin-chart {
  max-width: 900px;
  overflow: hidden;
}

.admin-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 200px;
  width: 100%;
  padding-top: 1.2rem;
}

.admin-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  position: relative;
}

.admin-chart-bar {
  width: 100%;
  max-width: 24px;
  background: rgb(255 255 255 / 40%);
  transition: height 0.6s ease, background 0.2s;
  min-height: 1px;
}

.admin-chart-col:hover .admin-chart-bar {
  background: #fff;
}

.admin-chart-value {
  font-weight: 300;
  font-size: 0.6rem;
  color: rgb(255 255 255 / 50%);
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.admin-chart-date {
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 30%);
  margin-top: 0.4rem;
  white-space: nowrap;
  transform: rotate(-45deg);
  transform-origin: center;
  height: 1.5rem;
}

.admin-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 700px;
}

.admin-stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.admin-stat-label {
  font-weight: 300;
  font-size: 0.85rem;
  color: #e0e0e0;
  width: 120px;
  flex-shrink: 0;
}

.admin-stat-path {
  font-weight: 300;
  font-size: 0.7rem;
  color: rgb(255 255 255 / 30%);
  width: 90px;
  flex-shrink: 0;
}

.admin-stat-bar {
  flex: 1;
  height: 6px;
  background: rgb(255 255 255 / 6%);
  position: relative;
  overflow: hidden;
}

.admin-stat-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: rgb(255 255 255 / 40%);
  transition: width 0.6s ease;
}

.admin-stat-count {
  font-weight: 300;
  font-size: 0.85rem;
  color: #fff;
  width: 60px;
  text-align: right;
  flex-shrink: 0;
}

#admin-video-links .admin-stat-label {
  width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-map {
  position: relative;
  max-width: 900px;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #060606;
  border: 1px solid rgb(255 255 255 / 8%);
  margin-bottom: 1.5rem;
}

.admin-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.35;
  filter: invert(1) brightness(0.6);
  pointer-events: none;
}

.admin-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.admin-map-dot {
  fill: rgb(120 180 255 / 55%);
  stroke: rgb(160 200 255 / 90%);
  stroke-width: 0.5;
  transition: fill 0.2s;
}

.admin-map-dot:hover {
  fill: rgb(160 200 255 / 85%);
}

.admin-map-num {
  fill: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 7px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

#admin-video-links .admin-stat-path {
  width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-item.active {
  background: rgb(255 255 255 / 8%);
}

.video-item-name {
  font-weight: 300;
  font-size: 0.82rem;
  color: #b8b8b8;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-item:hover .video-item-name {
  color: #e0e0e0;
}

.video-item.active .video-item-name {
  color: #fff;
}

.video-item-meta {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 25%);
  white-space: nowrap;
}

.video-item-share {
  font-family: inherit;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 55%);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 20%);
  padding: 0.2rem 0.55rem;
  margin-left: 0.6rem;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}

.video-item:hover .video-item-share {
  opacity: 1;
}

.video-item-share:hover {
  border-color: #fff;
  color: #fff;
  background: rgb(255 255 255 / 10%);
}

.video-player-wrap {
  margin-bottom: 2rem;
  max-width: 100%;
}

.videos-content.link-only .videos-tree,
.videos-content.link-only #videos-status {
  display: none;
}

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

.video-player {
  width: 100%;
  max-width: 100%;
  max-height: 70vh;
  background: #000;
  border: 1px solid rgb(255 255 255 / 6%);
  object-fit: contain;
}

.video-player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.video-player-title {
  font-weight: 300;
  font-size: 0.85rem;
  color: #fff;
}

.video-player-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.video-player-size {
  font-weight: 300;
  font-size: 0.7rem;
  color: rgb(255 255 255 / 25%);
}

.video-share-btn {
  font-family: inherit;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e0e0e0;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 30%);
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.video-share-btn:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 10%);
}

.site-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.site-flash.hidden {
  display: none;
}

.site-flash.show {
  opacity: 1;
}

.site-flash span {
  font-family: inherit;
  font-weight: 300;
  font-size: clamp(1.4rem, 6vw, 3.2rem);
  letter-spacing: 0.3em;
  color: #000;
  padding-left: 0.3em;
}

.jam-tile-focused {
  z-index: 10;
}

.jam-tile-focused .jam-tile-inner {
  transform: rotateY(180deg) scale(1.08);
}

.jam-tile-focused .jam-tile-back {
  box-shadow:
    0 0 60px rgb(60 120 255 / 25%),
    0 0 120px rgb(60 120 255 / 10%),
    0 20px 60px rgb(0 0 0 / 40%);
  border-color: rgb(60 120 255 / 30%);
}
