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

html {
  scroll-behavior: smooth;
}

body { background: linear-gradient(to top, #000000, #000000, #222222); color: white; min-height: 100vh; font-family: 'Roboto', sans-serif; }
.navbar { background: #343a40; z-index: 1055; }
.search-bar input { background: #495057; color: white; border: none; }
.search-bar input::placeholder { color: #ced4da; }
.badge-type { background: #6c757d; font-size: 0.7rem; }
.artist-banner { position: relative; overflow: hidden; transition: transform 0.5s ease; }
.artist-banner:hover { transform: scale(1.01); }
.artist-banner::before{ content:'';position:absolute;top:0;left:0;right:0;bottom:0;backdrop-filter:blur(2px);background:rgba(0,0,0,.4);z-index:1 }
.artist-banner>*{ position:relative;z-index:2 }
.vinyl-loader{ width:80px;height:80px;margin:0 auto;border-radius:50%;background:radial-gradient(circle at center,#333 20%,#000 21%,#000 100%);border:6px solid #444;border-top-color:#ccc;animation:1s linear infinite spin;position:relative }
.vinyl-loader::after{ content:'';position:absolute;top:50%;left:50%;width:12px;height:12px;background:#ccc;border-radius:50%;transform:translate(-50%,-50%) }
@keyframes spin{ 0%{ transform:rotate(0) } 100% { transform:rotate(360deg) } }

.sidebar-custom {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  transition: left 0.3s ease;
  z-index: 1020;
  border-right: 1px solid #333;
  overflow-y: auto;
}

.sidebar-custom.show {
  left: 0;
}

body.sidebar-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .navbar .form-control {
    font-size: 1rem;
  }
}

#toggleSidebar {
  min-width: 44px;
  text-align: center;
}

/* Estilos para el badge de versión del cache */
#cacheVersionBadge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  background-color: #17a2b8 !important;
  color: #fff !important;
  border: 1px solid #17a2b8;
  margin-left: auto; /* Empujar completamente a la derecha */
}

/* Marca visual para items no recibidos */
.not-received-badge {
  position: absolute;
  top: 55px;
  right: 25px;
  background-color: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  font-weight: bold;
  font-size: 0.7rem;
  z-index: 10;
  transform: rotate(45deg) translate(35%, -50%);
  transform-origin: top right;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  min-width: 150px;
  text-align: center;
}

.not-received-badge span {
  display: inline-block;
}

/* Estilos para el dropdown de autocompletado */
.search-dropdown {
  border-color: #495057 !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
}

.search-suggestions {
  max-height: 250px;
  overflow-y: auto;
}

.search-suggestion-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #495057;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background-color: #495057;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

/* Estilos para badges de filtros de búsqueda */
.search-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #0d6efd;
  color: #fff;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.4;
  animation: fadeIn 0.2s ease;
}
.search-badge .btn-close {
  font-size: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  opacity: 0.8;
  cursor: pointer;
}
.search-badge .btn-close:hover {
  opacity: 1;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.search-suggestion-icon {
  font-size: 0.8rem;
  opacity: 0.7;
  min-width: 16px;
}

.search-suggestion-text {
  flex: 1;
  font-size: 0.9rem;
}

.search-suggestion-type {
  font-size: 0.75rem;
  opacity: 0.6;
  text-transform: uppercase;
  font-weight: 500;
}

/* Responsive: ajustar badge en móviles */
@media (max-width: 576px) {
  #cacheVersionBadge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    margin-left: auto; /* Mantener alineación a la derecha */
    margin-top: 0;
    order: 2;
    align-self: center;
  }

  /* Ajustar el contenedor principal para móviles - quitar flex-wrap para mantener fila */
  .navbar .d-flex {
    flex-wrap: nowrap !important; /* Mantener en una fila */
  }

  .navbar .d-flex > div:first-child {
    width: auto !important; /* Permitir que se ajuste al contenido */
    margin-bottom: 0;
    flex-shrink: 1; /* Permitir que se encoja */
    min-width: 150px; /* Mínimo para que quepa el botón */
  }
}

@media (max-width: 576px) {
  .search-bar {
    width: 100% !important;
  }
}

@media screen and (min-width: 576px)  {
  
  .card {
    width: 260px;
    height: 260px;
  }

  .side-img {
    left: 92%;
  }

}

@media screen and (min-width: 1000px)  {
  
  .card {
    width: 260px;
    height: 260px;
  }

  .side-img {
    left: 87%;
  }

}

@media screen and (min-width: 1400px)  {
  
  .card {
    width: 312px;
    height: 312px;
  }

  .side-img {
    left: 90%;
  }
}
.card {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.9;
  aspect-ratio: 1 / 1;
}

  .card > img {
    /* width: calc(100% - 10px); dejar espacio para el borde */
    height: 100%;
    object-fit: cover;
    display: block;
    overflow: hidden;
    /* transition: transform 2.5s ease; */
  }
/* .card:hover { 
  transform: scale(1.01); 
} */



.card-img-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.btn-edit-card {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn-wishlist-add {
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-width: 32px;
}
.btn-wishlist-remove {
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-width: 36px;
  font-size: 0.9rem;
}
.card-action-group {
  align-items: flex-end;
}

.card-action-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
}

.card-action-btn svg {
  flex-shrink: 0;
}
.card-with-border:hover .btn-edit-card {
  opacity: 1;
}
.card-with-border:hover .btn-wishlist-add {
  opacity: 1;
}
.card-with-border:hover .btn-wishlist-remove {
  opacity: 1;
}

body.auth-editor .btn-edit-card,
body.auth-editor .btn-wishlist-add,
body.auth-editor .btn-wishlist-remove {
  opacity: 1;
}

body:not(.auth-editor) .btn-edit-card {
  display: none;
}
body:not(.auth-editor) .btn-wishlist-add {
  display: none;
}
body:not(.auth-editor) .btn-wishlist-remove {
  display: none;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .play-button {
  opacity: 1;
}

.text-hide {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .text-hide {
  opacity: 1;
}

.card-with-border {
  position: relative;
  font-size: 0.8rem;
}

.card-with-border::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  /* border-top: 10px solid rgba(176, 33, 33, 0.5);
  border-bottom: 10px solid rgba(176, 33, 33, 0.5);
  border-left: 10px solid rgba(176, 33, 33, 0.5);
  border-right: 35px solid rgba(176, 33, 33, 0.5); */
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
  transition: border-color 0.3s ease; /* animación suave */
}

.side-label {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 32px;
  /* background-color: #8e44ad; */
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: white;
  font-weight: bold;
  text-align: left;
  pointer-events: none;
  z-index: 2;
}

/* .card-with-border:hover {
  transform: scale(1.03);
} */
 
.side-img {
  position: absolute;
  /* left: 90%; */
  top: 3%;
  right: 0;
  /* height: 5%; */
  writing-mode: vertical-rl;
  text-align: left;
}

/* .side-img:hover {
  transform: scale(1.03);
} */


.row > * {
  padding-left: 0px;
}


.card-img, .card-img-top {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.borde-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  pointer-events: none;
  border-right: none;
  z-index: 1;
}

.btn-discorgs{
  z-index: 99999;
}

.btn-edit-card,
.btn-wishlist-add,
.btn-wishlist-remove {
  position: relative;
  z-index: 100000;
}




.alphabet-index {
  z-index: 1020;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0.3rem;
  border-radius: 0.5rem;
  text-align: center;
}

.alphabet-index a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 2px;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .alphabet-index a:hover {
    color: #0dcaf0;
  }
}

.alphabet-index a.is-active {
  color: #0dcaf0;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(13, 202, 240, 0.55);
}

html {
  scroll-behavior: smooth;
}





.alphabet-index {
  z-index: 1020;
  padding: 0.4rem;
  text-align: center;
}

/* Estilo para escritorio (vertical a la derecha) */
@media (min-width: 768px) {
  .alphabet-index {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0.5rem 0 0 0.5rem;
  }

  .alphabet-index a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 6px;
    transition: color 0.2s ease;
  }

  @media (hover: hover) {
    .alphabet-index a:hover {
      color: #0dcaf0;
    }
  }
}

/* Estilo para móvil (horizontal abajo) */
@media (max-width: 767.98px) {
  .alphabet-index {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 0;
    padding: 0.5rem 0.3rem;
  }

  .alphabet-index a {
    color: #fff;
    font-size: 0.75rem;
    margin: 0 4px;
    text-decoration: none;
  }

  .alphabet-index a.is-active {
    color: #36d9ff;
    transform: scale(1.18);
  }

  @media (hover: hover) {
    .alphabet-index a:hover {
      color: #0dcaf0;
      transform: scale(1.5);
    }
  }
}

[id^="letra-"] {
  scroll-margin-top: 70px;
}

#btn-clear-library {
  z-index: 1060;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.btn-clear-container {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 20px));
}

#alphabet {
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 767.98px) {
  .badge-desktop { display: none !important; }
  .badge-mobile { display: flex !important; }
}
@media (min-width: 768px) {
  .badge-mobile { display: none !important; }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .fixed-bottom-ios {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

.top-estilos {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.top-estilos h6 {
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.top-lista div {
  line-height: 1.4;
}


@keyframes rubberBand {
  0%   { transform: scale3d(1, 1, 1); }
  30%  { transform: scale3d(1.25, 0.75, 1); }
  40%  { transform: scale3d(0.75, 1.25, 1); }
  50%  { transform: scale3d(1.15, 0.85, 1); }
  65%  { transform: scale3d(0.95, 1.05, 1); }
  75%  { transform: scale3d(1.05, 0.95, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

/* Estilos para modo offline */
body.offline::before {
  content: '🌐 Modo offline';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffc107;
  color: #212529;
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1050;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body.offline .offline-badge {
  display: inline-block;
  background: #6c757d;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 8px;
}

/* Estilos para notificaciones de sincronización */
#background-update-notifications {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

@keyframes slideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}

/* .letra-tag {
  display: inline-block;
  padding: 6px 10px;
  margin: 2px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  background-color: #222;
  transition: background-color 0.2s;
} */

.letra-tag:hover {
  animation: rubberBand 0.8s ease;
  /* background-color: #444; */
}




.recibido-filter {
  --h: 42px;
  --p: 5px;
  --speed: 420ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: var(--p);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  overflow: hidden;
}



.recibido-filter {
  --h: 42px;
  --p: 5px;
  --speed: 420ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: var(--p);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.recibido-filter input[type="radio"] {
  display: none;
}

.recibido-filter label {
  position: relative;
  z-index: 2;
  min-width: 120px;
  height: var(--h);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  user-select: none;
  transition:
    color var(--speed) ease,
    transform var(--speed) ease;
}

.recibido-filter label:hover {
  color: rgba(255, 255, 255, 0.95);
}

.recibido-filter-slider {
  position: absolute;
  z-index: 1;
  top: var(--p);
  left: var(--p);
  width: calc((100% - (var(--p) * 2)) / 3);
  height: calc(100% - (var(--p) * 2));
  border-radius: 12px;
  background: linear-gradient(180deg, #3d7bfd 0%, #2f6df6 100%);
  box-shadow:
    0 8px 24px rgba(47, 109, 246, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform var(--speed) var(--ease),
    background var(--speed) ease,
    box-shadow var(--speed) ease;
}

/* texto activo */
#filterRecibidoTodos:checked + label,
#filterRecibidoSI:checked + label,
#filterRecibidoNO:checked + label {
  color: #fff;
}

/* mover slider */
#filterRecibidoTodos:checked ~ .recibido-filter-slider {
  transform: translateX(0%);
}

#filterRecibidoSI:checked ~ .recibido-filter-slider {
  transform: translateX(100%);
}

#filterRecibidoNO:checked ~ .recibido-filter-slider {
  transform: translateX(200%);
}

/* opcional: color distinto por estado */
#filterRecibidoSI:checked ~ .recibido-filter-slider {
  background: linear-gradient(180deg, #249f67 0%, #1f8e5b 100%);
  box-shadow:
    0 8px 24px rgba(31, 142, 91, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

#filterRecibidoNO:checked ~ .recibido-filter-slider {
  background: linear-gradient(180deg, #d55353 0%, #c64545 100%);
  box-shadow:
    0 8px 24px rgba(198, 69, 69, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

@media (max-width: 576px) {
  .recibido-filter {
    width: 100%;
  }

  .recibido-filter label {
    min-width: auto;
    width: 100%;
    font-size: 0.85rem;
    padding: 0 8px;
  }
}

/* Sort dropdown - tema oscuro */
.sort-filter-wrapper {
  display: inline-block;
  width: auto;
}

.sort-filter {
  --h: 42px;
  --p: 5px;
  --speed: 420ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  display: inline-grid;
  align-items: center;
  padding: var(--p);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  overflow: visible;
}

.sort-filter #sortDropdownButton {
  position: relative;
  z-index: 2;
  height: var(--h);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  transition:
    color var(--speed) ease,
    transform var(--speed) ease;
  white-space: nowrap;
}

.sort-filter #sortDropdownButton:hover {
  color: rgba(255, 255, 255, 0.95);
}

#sortDropdownMenu {
  background: #343a40;
  border: 1px solid #495057;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}

#sortDropdownMenu .sort-option {
  color: #ced4da;
  background: transparent;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
}

#sortDropdownMenu .sort-option:hover {
  background: #495057;
  color: #fff;
}

#sortDropdownMenu .sort-option.active {
  background: #2f6df6;
  color: #fff;
  font-weight: 500;
}

#sortDropdownMenu .sort-option.active::before {
  content: '✓';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

#sortDropdownMenu .sort-option:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 576px) {
  .sort-filter {
    width: auto;
  }

  .sort-filter #sortDropdownButton {
    font-size: 0.85rem;
    padding: 0 12px;
  }

  .sort-label {
    display: none;
  }
}

.global-action-menu {
  position: fixed;
  right: 88px;
  bottom: 28px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

body.ios-install-banner-visible .global-action-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

body.swal2-shown .global-action-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.global-action-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.global-action-menu.is-open .global-action-items {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.global-action-toggle,
.push-subscribe-fab,
.global-action-item {
  border: none;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  position: relative;
  z-index: 1;
}

.global-action-dock {
  --dock-gap: 12px;
  --dock-padding: 8px;
  display: flex;
  align-items: center;
  gap: var(--dock-gap);
  padding: var(--dock-padding);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12) 0%, rgba(104, 214, 255, 0.10) 24%, rgba(28, 70, 88, 0.34) 52%, rgba(10, 20, 30, 0.42) 100%),
    rgba(12, 18, 26, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  transition: gap 0.28s ease, padding 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.global-action-dock::before,
.global-action-dock::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.global-action-dock::before {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.32), transparent 22%),
    radial-gradient(circle at 74% 14%, rgba(132, 226, 255, 0.22), transparent 22%),
    radial-gradient(circle at 58% 88%, rgba(19, 210, 180, 0.12), transparent 20%),
    linear-gradient(115deg, transparent 14%, rgba(255, 255, 255, 0.16) 34%, rgba(255, 255, 255, 0.03) 49%, transparent 68%);
  animation: dockWaterFlow 7.5s ease-in-out infinite alternate;
}

.global-action-dock::after {
  inset: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 46%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.82;
}

.global-action-menu:not(.has-subscribe-button) .global-action-dock {
  --dock-gap: 0px;
  --dock-padding: 6px;
  border-radius: 999px;
  transform: scale(0.98);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.global-action-subscribe-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  transition: min-width 0.28s ease, opacity 0.2s ease;
}

.global-action-menu:not(.has-subscribe-button) .global-action-subscribe-slot {
  display: none;
}

.global-action-toggle {
  width: 58px;
  height: 58px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(180deg, rgba(57, 237, 205, 0.98) 0%, rgba(22, 205, 174, 0.94) 58%, rgba(12, 160, 137, 0.98) 100%);
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background 0.25s ease;
  box-shadow:
    0 16px 28px rgba(18, 181, 156, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08);
}

.global-action-menu.is-open .global-action-toggle {
  transform: rotate(45deg);
}

.global-action-toggle:hover,
.push-subscribe-fab:hover {
  filter: brightness(1.08) saturate(1.06);
  transform: translateY(-1px);
}

.global-action-item {
  background:
    linear-gradient(180deg, rgba(32, 43, 56, 0.82) 0%, rgba(17, 24, 34, 0.9) 100%),
    rgba(20, 28, 38, 0.4);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.global-action-item:hover {
  transform: translateX(-3px);
  background:
    linear-gradient(180deg, rgba(42, 57, 74, 0.9) 0%, rgba(20, 28, 40, 0.94) 100%),
    rgba(26, 35, 46, 0.45);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.push-subscribe-fab {
  width: 58px;
  height: 58px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(180deg, rgba(71, 213, 241, 0.98) 0%, rgba(23, 172, 203, 0.94) 58%, rgba(10, 128, 151, 0.98) 100%);
  font-size: 1.75rem;
  line-height: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow:
    0 16px 28px rgba(20, 158, 184, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08);
}

.push-subscribe-fab:disabled {
  cursor: wait;
}

.wishlist-type-select.swal2-select {
  width: 100%;
}

.wishlist-swal-popup {
  width: min(34rem, calc(100vw - 1.5rem)) !important;
  padding: 1rem 1rem 1.15rem !important;
}

.wishlist-swal-html {
  margin: 0.5rem 0 0 !important;
  overflow: visible !important;
}

.wishlist-form-grid {
  width: min(100%, 21rem);
  margin: 0 auto;
}

.wishlist-form-row {
  width: 100%;
}

.wishlist-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.wishlist-form-row-2 .swal2-input {
  margin: 0 !important;
}

.wishlist-form-grid .swal2-input,
.wishlist-form-grid .swal2-textarea,
.wishlist-type-select.swal2-select {
  width: 100% !important;
  margin: 0 0 0.85rem !important;
}

.wishlist-form-grid .swal2-input,
.wishlist-type-select.swal2-select {
  height: 2.75rem;
}

.wishlist-form-grid .swal2-textarea {
  min-height: 6.25rem;
}

.wishlist-type-select.swal2-select {
  margin: 0 0 0.85rem !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.25em;
  background: #1d1d1d;
  color: #fff;
  padding: 0 1rem;
  box-shadow: none;
}

.wishlist-type-select.swal2-select option {
  background: #1d1d1d;
  color: #fff;
}

@media (max-width: 576px) {
  .wishlist-swal-popup {
    width: calc(100vw - 1rem) !important;
    max-height: calc(100vh - 1rem);
    padding: 0.9rem 0.85rem 1rem !important;
  }

  .wishlist-swal-popup .swal2-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
  }

  .wishlist-form-grid {
    width: 100%;
  }

  .wishlist-form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0.7rem;
  }

  .wishlist-form-row-2 .swal2-input {
    margin: 0 0 0.7rem !important;
  }

  .wishlist-form-row-2 .swal2-input:last-child {
    margin-bottom: 0 !important;
  }

  .wishlist-form-grid .swal2-input,
  .wishlist-form-grid .swal2-textarea,
  .wishlist-type-select.swal2-select {
    width: 100% !important;
  }

  .wishlist-form-grid .swal2-input,
  .wishlist-type-select.swal2-select {
    height: 2.55rem;
    margin: 0 0 0.7rem !important;
  }

  .wishlist-discogs-button {
    font-size: 0.9rem;
    padding: 0.68em 0.8em;
  }

  .wishlist-form-grid .swal2-textarea {
    min-height: 5.25rem;
  }

  .wishlist-swal-popup .swal2-actions {
    margin-top: 0.75rem !important;
  }

  .global-action-menu {
    right: 14px;
    bottom: 88px;
  }

  .global-action-dock {
    --dock-gap: 10px;
    --dock-padding: 7px;
  }

  .global-action-menu:not(.has-subscribe-button) .global-action-dock {
    --dock-gap: 0px;
    --dock-padding: 5px;
  }

  .global-action-toggle {
    width: 54px;
    height: 54px;
  }

  .global-action-menu:not(.has-subscribe-button) .global-action-toggle {
    width: 52px;
    height: 52px;
  }
}

@keyframes dockWaterFlow {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1);
    opacity: 0.86;
  }
  50% {
    transform: translate3d(3%, -2%, 0) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1);
    opacity: 0.9;
  }
}
