/* ================== WaterMelon Random Strip — cleaned (final) ================== */
#wm-random-strip {
  /* layout */
  display: grid;
  grid-template-columns: 84px minmax(100px, 100px) 1fr 84px 56px;
  /* 다이얼 100px 고정 */
  align-items: center;
  gap: 24px;
  padding: 24px 20px;
  width: min(96vw, 980px);
  max-width: 980px;
  margin: 40px auto 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);

  /* vars */
  --disc-rot: 30s;
  /* 썸네일 회전 속도 */
  --needle-main: #931F21;
  /* 바늘 레드 (깊은 Gucci 레드 톤) */
  --needle-stripe: #fff;
  /* 바늘 흰 스트라이프 */
  --needle-w: 21px;
  --needle-h: 21px;
  /* 22px → 18px (길이 축소) */
  --needle-offset: -10px;
  /* 링 밖으로 살짝 시작 */
  --needle-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --tip-r: 7px;
  /* 센터 쪽 끝 라운드 반지름 (4~8px 추천) */

  /* 흰 스트라이프 비중(+30% 확대 기준) */
  --stripe-left: 70%;
  /* 밑변 좌측 시작점 (낮출수록 넓어짐) */
  --stripe-right: 96%;
  /* 밑변 우측 끝점 (올릴수록 넓어짐) */

  /* 폴백(clip-path 미지원)용 */
  --stripe-pct: 0.13;
  /* 스트라이프 폭 비율(0.10 → 0.13 = +30%) */
  --stripe-shift: 0.22;
  /* 약간 오른쪽 치우침 */
}

/* nav tabs */
#wm-random-strip .tab {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 21px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  font-size: 18px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#wm-random-strip .tab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .75);
  outline-offset: 2px;
  border-radius: 21px;
}

#wm-random-strip .tab:active {
  filter: brightness(1.05);
}

#wm-random-strip .tab:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* art (dial base) - 100x100 고정 */
#wm-random-strip .art {
  width: 100px;
  min-width: 100px;
  min-height: 100px;
  aspect-ratio: 1/1;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  z-index: 1;
}

#wm-random-strip .art img,
#wm-random-strip .art .art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}

/* 썸네일 회전 */
#wm-random-strip.playing .art img,
#wm-random-strip.playing .art .art-img {
  animation: wm-disc-spin var(--disc-rot) linear infinite;
}

#wm-random-strip.scrubbing .art img,
#wm-random-strip.scrubbing .art .art-img {
  animation-play-state: paused !important;
}

@keyframes wm-disc-spin {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

/* dial overlay */
#wm-random-strip .art>.wm-dial-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

#wm-random-strip .art>.wm-dial-wrap>.wm-dial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  border-radius: 50%;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

#wm-random-strip .art>.wm-dial-wrap>.wm-dial:active {
  cursor: grabbing;
}

#wm-random-strip .art>.wm-dial-wrap>.wm-dial:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .75);
  outline-offset: 2px;
  border-radius: 50%;
}

/* dial visuals */
#wm-random-strip .wm-dial .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
  pointer-events: none;
}

#wm-random-strip .wm-dial .hole {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6%;
  height: 6%;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  background: rgba(245, 245, 245, .96);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25) inset;
  pointer-events: none;
}

/* ▼ 새 삼각 바늘 (센터 쪽 끝 라운드 처리) */
#wm-random-strip .wm-dial .marker {
  position: absolute;
  left: 50%;
  top: var(--needle-offset);
  transform: translateX(-50%);
  width: var(--needle-w);
  height: var(--needle-h);
  pointer-events: none;
  z-index: 3;
  background: var(--needle-main);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  /* 안쪽(100%)이 뾰족 */
}

/* 센터 방향 끝 라운드 캡 */
#wm-random-strip .wm-dial .marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - var(--tip-r));
  /* 요소 하단(센터 방향) */
  width: calc(var(--tip-r) * 2);
  height: calc(var(--tip-r) * 2);
  transform: translate(-50%, -50%);
  background: var(--needle-main);
  border-radius: 999px;
  filter: drop-shadow(var(--needle-shadow));
  z-index: 2;
}

/* 흰 스트라이프 (비중 +30%) */
#wm-random-strip .wm-dial .marker::after {
  content: "";
  position: absolute;
  inset: 1px 1px 2px 1px;
  /* 가장자리 여백 */
  background: var(--needle-stripe);
  clip-path: polygon(var(--stripe-left) 0, var(--stripe-right) 0, 50% 100%);
  opacity: .95;
  z-index: 3;
  /* 라운드 캡 위에 */
}

/* clip-path 폴백 */
@supports not (clip-path: polygon(0 0, 100% 0, 50% 100%)) {
  #wm-random-strip .wm-dial .marker {
    width: 0;
    height: 0;
  }

  #wm-random-strip .wm-dial .marker::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-left: calc(var(--needle-w)/2) solid transparent;
    border-right: calc(var(--needle-w)/2) solid transparent;
    border-bottom: var(--needle-h) solid var(--needle-main);
    filter: drop-shadow(var(--needle-shadow));
  }

  #wm-random-strip .wm-dial .marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
    border-left: calc(var(--needle-w)*var(--stripe-pct)) solid transparent;
    border-right: calc(var(--needle-w)*var(--stripe-pct)) solid transparent;
    border-bottom: calc(var(--needle-h) - 2px) solid var(--needle-stripe);
    margin-left: calc(var(--needle-w)*var(--stripe-shift));
  }
}

/* meta / chips / buttons */
#wm-random-strip .meta {
  position: relative;
  z-index: 3;
  min-width: 0;
}

#wm-random-strip .meta .eyebrow {
  font-size: 13px;
  opacity: .7;
  margin-bottom: 6px;
}

#wm-random-strip .meta .title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

#wm-random-strip .meta .sub {
  font-size: 13px;
  opacity: .8;
  margin-top: 4px;
}

#wm-random-strip .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

#wm-random-strip .chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  opacity: .9;
}

#wm-random-strip .btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

/* volume column */
#wm-random-strip .volcol {
  display: flex;
  align-items: center;
  justify-content: center;
}

#wm-random-strip .volwrap {
  width: 44px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

#wm-random-strip .vol-vert {
  width: 100px;
  height: 28px;
  transform: rotate(-90deg);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
}

#wm-random-strip .vol-vert::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255, 255, 255, .4);
  border-radius: 999px;
}

#wm-random-strip .vol-vert::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  margin-top: -5px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
}

#wm-random-strip .vol-vert::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, .4);
  border-radius: 999px;
}

#wm-random-strip .vol-vert::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
}

/* states */
#wm-random-strip.scrubbing {
  user-select: none;
}

/* mobile */
@media (max-width:768px) {
  #wm-random-strip {
    grid-template-columns: 60px minmax(100px, 100px) 1fr 60px;
    padding: 18px;
  }

  #wm-random-strip .tab {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }

  .volcol {
    display: none !important;
  }

  #wm-random-strip .meta .eyebrow {
    font-size: 12px;
    margin-bottom: 6px;
  }

  #wm-random-strip .meta .title {
    font-size: 14px;
  }

  #wm-random-strip .meta .sub {
    font-size: 12px;
    margin-top: 4px;
  }

  #wm-random-strip .chips {
    gap: 6px;
    margin-top: 8px;
  }

  #wm-random-strip .chip {
    padding: 4px 9px;
    font-size: 11px;
  }

  #wm-random-strip .actions {
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  #wm-random-strip .btn {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* 겹치는 구간을 링(흰색)으로 덮어 깔끔하게 */
#wm-random-strip .wm-dial .ring {
  z-index: 4;
}

/* ↑ 바늘(3)보다 크게 */
#wm-random-strip .wm-dial .marker {
  z-index: 3;
}

/* 참고: 현재 값 유지 */