:root {
  --ac: #60a5fa;
  --ac-2: #b9d6fb;
  --ac-soft: rgba(96, 165, 250, 0.14);
  --ac-glow: rgba(96, 165, 250, 0.14);
  --ac-ink: #07111f;
  --pl: #60a5fa;
  --product-bar-height: 3.75rem;
}

* {
  scrollbar-color: #334155 #111827;
}

body {
  overflow: hidden;
}

.product-bar {
  position: relative;
  z-index: 30;
  display: grid;
  box-sizing: border-box;
  width: 100%;
  height: var(--product-bar-height);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid #dbe5f0;
  background: #ffffff;
  color: #172033;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.product-back {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 750;
  text-shadow: none;
}

.product-back {
  justify-self: start;
  padding: 0.35rem 0.2rem;
}

.product-back:hover {
  color: #1d4ed8;
  text-shadow: none;
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
}

.product-identity > span:last-child {
  display: grid;
  gap: 0.05rem;
}

.product-identity strong {
  color: #172033;
  font-size: 0.96rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.product-identity small {
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-mark {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 0.55rem;
  background: #2563eb;
}

.product-mark i {
  display: block;
  width: 2px;
  border-radius: 999px;
  background: white;
}

.product-mark i:nth-child(1),
.product-mark i:nth-child(5) { height: 0.45rem; }
.product-mark i:nth-child(2),
.product-mark i:nth-child(4) { height: 0.8rem; }
.product-mark i:nth-child(3) { height: 1.15rem; }

#app {
  width: 100%;
  height: calc(100dvh - var(--product-bar-height));
}

.pk_hdr,
.pk_tb,
.pk_mt_on .pk_tbc {
  background: #121923;
}

.pk_hdr .pk_btn.pk_act > button,
.pk_hdr .pk_btn:hover > button {
  box-shadow: none;
}

.pk_btn:focus-visible,
.pk_hdr button:focus-visible,
.pk_modal button:focus-visible,
.pk_modal input:focus-visible,
.pk_modal select:focus-visible,
.pk_mt_clip:focus-visible,
.sot-empty-open:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.pk_tmpMsg {
  width: min(34rem, calc(100vw - 4rem));
  margin-left: max(-17rem, calc((4rem - 100vw) / 2));
  color: #dce8f8;
  font-size: 1rem;
  line-height: 1.7;
  text-shadow: none;
}

.sot-empty-open {
  min-height: 2.5rem;
  margin-left: 0.45rem;
  padding: 0 1rem;
  border: 1px solid #60a5fa;
  border-radius: 0.35rem;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}

.pk_mt_empty .sot-empty-open {
  pointer-events: auto;
}

#k01,
#k01 + label,
#k03,
#k03 + label,
#frmtex-mp3,
#frmtex-flac,
.pk_amss {
  display: none !important;
}

.unsupported {
  box-sizing: border-box;
  width: min(100% - 2rem, 38rem);
  min-height: calc(100dvh - var(--product-bar-height));
  margin: 0 auto;
  align-content: center;
  padding: 3rem 1rem;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.unsupported:not([hidden]) {
  display: grid;
}

.unsupported-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  place-items: center;
  border-radius: 1.1rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 2rem;
}

.unsupported h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: -0.04em;
}

.unsupported p {
  margin: 1rem auto 0;
  color: #a9b8cc;
  line-height: 1.75;
}

.unsupported-actions {
  display: flex;
  margin-top: 1.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.unsupported a,
.unsupported-actions button {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.4rem;
  background: #2563eb;
  color: white;
  font: inherit;
  font-weight: 750;
  text-shadow: none;
  cursor: pointer;
}

.unsupported-actions a {
  background: transparent;
  border: 1px solid #3b4a63;
  color: #dbe5f2;
}

.unsupported-actions button[hidden] {
  display: none;
}

.unsupported #unsupported-reload[hidden] + a {
  background: #2563eb;
  border: 1px solid transparent;
  color: white;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 48rem) {
  .product-bar {
    grid-template-columns: auto 1fr;
  }

  .product-identity {
    justify-self: end;
  }

  .product-back span:last-child,
  .product-identity small {
    display: none;
  }
}

@media (hover: hover) and (max-width: 48rem),
  (hover: hover) and (max-height: 32rem) {
  body {
    min-width: 48rem;
    min-height: 36rem;
    overflow: auto;
  }

  #app {
    min-width: 48rem;
    min-height: 30rem;
  }
}

/* 좁은 화면 안내가 떠 있을 때는 뷰포트 기준으로 가운데 정렬한다 */
body:has(> #unsupported:not([hidden])) {
  min-width: 0;
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
