/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

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

@font-face {
  font-family: "UCity";
  src: url("/assets/UCity.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Questrial", "UCity", "Georgia", "Times New Roman", serif;
  color: #000000;
  background-color: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
}

.page {
  padding: 24px;
  min-height: calc(100vh - 72px);
}

.notice,
.alert {
  margin: 0;
  padding: 12px 24px;
  background: #ffffff;
  color: #000000;
  border-bottom: 1px solid #000000;
}

.hidden {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000000;
  padding: 10px 18px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button--ghost {
  background: #ffffff;
  color: #000000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #000000;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar__logo {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__link {
  text-decoration: none;
  color: #000000;
  font-size: 15px;
}

.navbar__button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.navbar__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: #000000;
}

.guest {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 24px;
}

.guest__card {
  border: 2px solid #000000;
  padding: 48px;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.guest__actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.guest__form {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.guest__song {
  margin: 24px auto 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.guest__artwork {
  width: 220px;
  height: 220px;
  border: 2px solid #000000;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest__artwork img,
.guest__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
}

.guest__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: #000000;
  font-size: 18px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.guest__artwork:hover .guest__overlay {
  opacity: 1;
}

.guest__artwork:hover img {
  filter: blur(2px);
}

.guest__meta {
  text-align: center;
}

.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 24px;
}

.auth__card {
  border: 2px solid #000000;
  padding: 48px;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.auth__field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  text-align: left;
}

.auth input {
  padding: 10px 12px;
  border: 1px solid #000000;
  font-size: 16px;
}

.listen {
  display: grid;
  gap: 24px;
}

.listen__artwork {
  width: 100%;
  max-height: 60vh;
  border: 2px solid #000000;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listen__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listen__placeholder {
  padding: 48px;
  color: #000000;
}

.listen__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.listen__volume {
  width: 160px;
}

.listen__post {
  margin-top: 16px;
}

.listen__post-actions {
  display: flex;
  gap: 12px;
}

.rating {
  border: none;
  padding: 0;
  margin: 0 0 16px;
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.rating input {
  display: none;
}

.rating label {
  cursor: pointer;
  font-size: 20px;
  color: #7a7a7a;
}

.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
  color: #000000;
}

.library__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.library__sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.library {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.library__item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 14px;
  position: relative;
}

.library__artwork {
  width: 96px;
  height: 96px;
  border: 1px solid #000000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.library__artwork img,
.library__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #000000;
}

.library__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.2s ease;
  border: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.library__artwork:hover .library__overlay {
  opacity: 1;
}

.library__artwork:hover img {
  filter: blur(2px);
}

.library__rating {
  margin-top: 6px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.library__date {
  font-size: 12px;
}

.library__actions summary {
  list-style: none;
  cursor: pointer;
}

.library__actions summary::-webkit-details-marker {
  display: none;
}

.menu {
  display: grid;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #000000;
  background: #ffffff;
  position: absolute;
  right: 12px;
  margin-top: 6px;
}

.menu__item {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.library__footer {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  position: sticky;
  bottom: 88px;
}

.player {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-top: 2px solid #000000;
  padding: 12px 24px;
  display: grid;
  gap: 12px;
}

.player__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player__artwork {
  width: 40px;
  height: 40px;
  border: 1px solid #000000;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.upload {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.upload__field,
.upload__art {
  display: grid;
  gap: 8px;
}

.player__scrub {
  width: 100%;
}

.player__volume {
  width: 120px;
}

@media (max-width: 720px) {
  .navbar {
    flex-wrap: wrap;
  }

  .navbar__toggle {
    display: inline-flex;
  }

  .navbar__menu {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
  }

  .navbar__menu.is-open {
    display: flex;
  }

  .page {
    padding: 16px;
  }

  .library__item {
    grid-template-columns: 64px 1fr auto;
  }

  .library__artwork {
    width: 64px;
    height: 64px;
  }
}
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown summary {
  list-style: none;
  cursor: pointer;
}

.navbar__dropdown summary::-webkit-details-marker {
  display: none;
}
.player--locked .player__scrub {
  display: none;
}
