/* Karabass Premium Lounge: Auto Karaoke entry and prelaunch sheet */
.kb-auto-karaoke-entry {
  margin-right: 6px;
  display: flex !important;
  align-items: center;
}

.kb-auto-karaoke-trigger {
  min-width: 138px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: #8e20c5;
  border: 1px solid rgba(215, 131, 255, 0.34);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 100ms ease;
}

.kb-auto-karaoke-trigger:hover,
.kb-auto-karaoke-trigger:focus-visible {
  color: #fff;
  background: #a401f6;
  border-color: rgba(255, 255, 255, 0.42);
}

.kb-auto-karaoke-trigger:active {
  transform: scale(0.97);
}

.kb-auto-karaoke-trigger svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kb-auto-karaoke-modal[hidden] {
  display: none !important;
}

.kb-auto-karaoke-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.kb-auto-karaoke-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 10, 0.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: kb-ak-fade 180ms ease both;
}

.kb-auto-karaoke-sheet {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  max-height: min(720px, calc(100dvh - 36px));
  overflow: auto;
  color: #fff8ff;
  background: #211826;
  border: 1px solid rgba(255, 242, 250, 0.13);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(6, 3, 8, 0.54);
  animation: kb-ak-sheet-in 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kb-auto-karaoke-header {
  padding: 18px 18px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.kb-auto-karaoke-eyebrow {
  margin-bottom: 4px;
  display: block;
  color: #d783ff;
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.kb-auto-karaoke-header h2 {
  margin: 0;
  color: #fff8ff;
  font-family: var(--kb-font-ui, sans-serif) !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.02em;
}

.kb-auto-karaoke-close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 11px;
  color: var(--kb-warm-muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 242, 250, 0.1);
  border-radius: 12px;
}

.kb-auto-karaoke-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.kb-auto-karaoke-body {
  padding: 0 18px 18px;
}

.kb-auto-karaoke-lede {
  margin: 0 0 16px;
  color: var(--kb-warm-muted);
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 15px;
  line-height: 22px;
}

.kb-auto-karaoke-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.kb-auto-karaoke-steps li {
  min-height: 48px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--kb-warm-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 242, 250, 0.07);
  border-radius: 11px;
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 13px;
  line-height: 18px;
}

.kb-auto-karaoke-steps strong {
  color: #fff8ff;
  font-weight: 600;
}

.kb-auto-karaoke-step-number {
  color: #d783ff;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.kb-auto-karaoke-approval {
  margin: 12px 0 0;
  padding: 11px 12px;
  color: #eadcef;
  background: rgba(164, 1, 246, 0.11);
  border: 1px solid rgba(215, 131, 255, 0.18);
  border-radius: 11px;
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
}

.kb-auto-karaoke-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.kb-auto-karaoke-form[hidden],
.kb-auto-karaoke-guest[hidden],
.kb-auto-karaoke-request-status[hidden] {
  display: none !important;
}

.kb-auto-karaoke-form label {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 5px;
  color: #eadcef;
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.kb-auto-karaoke-form label em {
  color: var(--kb-warm-faint);
  font-style: normal;
  font-weight: 400;
}

.kb-auto-karaoke-form input,
.kb-auto-karaoke-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: #fff8ff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 242, 250, 0.11);
  border-radius: 10px;
  outline: 0;
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  resize: vertical;
}

.kb-auto-karaoke-form input:focus,
.kb-auto-karaoke-form textarea:focus {
  border-color: rgba(215, 131, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(164, 1, 246, 0.12);
}

.kb-auto-karaoke-form input::placeholder,
.kb-auto-karaoke-form textarea::placeholder {
  color: rgba(241, 226, 242, 0.43);
}

.kb-auto-karaoke-form small {
  justify-self: end;
  color: var(--kb-warm-faint);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.kb-auto-karaoke-submit,
.kb-auto-karaoke-guest a {
  min-height: 44px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #8e20c5;
  border: 1px solid rgba(215, 131, 255, 0.28);
  border-radius: 11px;
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.kb-auto-karaoke-submit:disabled {
  color: #d6cad9;
  background: #5f4b66;
  cursor: wait;
}

.kb-auto-karaoke-request-status {
  margin-top: 12px;
  padding: 11px 12px;
  display: grid;
  gap: 3px;
  color: #eadcef;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 242, 250, 0.1);
  border-radius: 11px;
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 13px;
  line-height: 18px;
}

.kb-auto-karaoke-request-status strong,
.kb-auto-karaoke-request-status span {
  display: block;
}

.kb-auto-karaoke-request-status.is-success {
  border-color: rgba(109, 170, 69, 0.32);
  background: rgba(109, 170, 69, 0.1);
}

.kb-auto-karaoke-request-status.is-error {
  border-color: rgba(209, 99, 167, 0.34);
  background: rgba(209, 99, 167, 0.1);
}

.kb-auto-karaoke-guest {
  margin-top: 12px;
  padding: 12px;
  color: var(--kb-warm-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 242, 250, 0.08);
  border-radius: 11px;
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 13px;
  line-height: 19px;
}

.kb-auto-karaoke-guest p {
  margin: 0 0 9px;
}

.kb-auto-karaoke-guest a {
  width: 100%;
}

.kb-auto-karaoke-footer {
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 242, 250, 0.09);
}

.kb-auto-karaoke-confirm {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  background: #8e20c5;
  border: 1px solid rgba(215, 131, 255, 0.28);
  border-radius: 12px;
  font-family: var(--kb-font-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
}

body.kb-auto-karaoke-open {
  overflow: hidden;
}

@keyframes kb-ak-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kb-ak-sheet-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1199px) {
  .kb-auto-karaoke-entry {
    margin-right: 2px;
  }

  .kb-auto-karaoke-trigger {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .kb-auto-karaoke-label {
    display: none;
  }
}

@media (max-width: 767px) {
  .yp_side_drawer ul.sections.menu_links li.kb-auto-karaoke-mobile-entry {
    flex: 1 100%;
    width: auto !important;
    max-width: 168px;
    height: 56px !important;
    margin: 0 !important;
    display: flex !important;
  }

  .kb-auto-karaoke-mobile-entry .kb-auto-karaoke-trigger {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 5px;
    flex-direction: column;
    gap: 2px;
    color: #d783ff;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
  }

  .kb-auto-karaoke-mobile-entry .kb-auto-karaoke-label {
    display: block !important;
  }

  .kb-auto-karaoke-mobile-entry .kb-auto-karaoke-trigger svg {
    width: 20px;
    height: 20px;
  }

  .kb-auto-karaoke-modal {
    align-items: end;
    padding: 0;
  }

  .kb-auto-karaoke-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(calc(100dvh - env(safe-area-inset-bottom)), 680px);
    margin: 0 !important;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .kb-auto-karaoke-header h2 {
    font-size: 22px;
    line-height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-auto-karaoke-trigger,
  .kb-auto-karaoke-backdrop,
  .kb-auto-karaoke-sheet {
    animation: none !important;
    transition: none !important;
  }
}
