/* includes/player/player-menu.css */

.pm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100100;
}

.pm-overlay.is-open {
  display: flex;
}

.pm-card {
  position: relative;
  z-index: 100101;
  width: min(520px, 100%);
  border-radius: 20px 20px 0 0;
  background: rgba(27, 30, 28, 0.77);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  overflow: hidden;
  font-family: "Gotham", system-ui, sans-serif;
  font-weight: 500;
}

/* Drag handle */
.pm-card .bp-drag-handle {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 12px 0 0;
  cursor: grab;
}
.pm-card .bp-drag-pill {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

/* ── Book header ── */
.pm-book-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pm-book-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}

.pm-book-info {
  flex: 1 1 0;
  min-width: 0;
}

.pm-book-title {
  font-size: 14px;
  font-weight: 500;
  color: #f6f7f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.pm-book-authors {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
  line-height: 1.3;
}

.pm-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #f6f7f2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-close svg {
  width: 16px;
  height: 16px;
}

/* ── Menu list ── */
.pm-list {
  padding: 6px 6px 8px;
}

.pm-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #f6f7f2;
  padding: 9px 8px;
  text-align: left;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.pm-item:hover {
  background: rgba(255,255,255,0.07);
}

.pm-item:active {
  transform: scale(0.99);
}

/* Icon */
.pm-item-ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f6f7f2;
}

.pm-item-ico svg {
  width: 18px;
  height: 18px;
}

/* Label + sub */
.pm-item-body {
  flex: 1 1 0;
  min-width: 0;
}

.pm-item-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #f6f7f2;
  line-height: 1.3;
}

.pm-item .pm-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.6;
  font-weight: 500;
}

/* Saved state */
.pm-item.is-saved .pm-item-ico {
  color: #65D46E;
}

.pm-item.is-saved .pm-item-label {
  color: #65D46E;
}

/* Danger state */
.pm-item.danger .pm-item-ico {
  color: #ffb5b5;
}

.pm-item.danger .pm-item-label {
  color: #ffb5b5;
}

.pm-sep {
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 4px 8px;
}
