/* dubtapes.css
scope: standalone cassette rack and dub tape spine visual definitions for the Dubs tab redesign */

:root {
  --dubtape-height: 38px;
  --dubtape-radius: 2px;
  --dubtape-border: #17191b;
  --dubtape-shadow: rgba(0, 0, 0, 0.58);
  --dubtape-slot-shadow: rgba(0, 0, 0, 0.46);
  --dubtape-nv-green: #45eb64;
  --dubtape-nv-green-dim: #92d58c;
  --dubtape-font-label: Arial, Helvetica, sans-serif;
  --dubtape-font-condensed: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --dubtape-font-tech: "Lucida Console", "Courier New", monospace;
  --dubtape-font-archive: Verdana, Geneva, sans-serif;
}

.DubTapeRack-Ax {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 4px 10px;
  align-content: start;
  padding: 18px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.35)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.28)),
    #101215;
  box-shadow:
    inset 0 16px 22px rgba(255, 255, 255, 0.04),
    inset 0 -18px 28px rgba(0, 0, 0, 0.42),
    0 12px 32px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  perspective: 900px;
}

.DubTapeRack-Ax::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 5px);
  width: 10px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(255, 255, 255, 0.10) 48%, rgba(0, 0, 0, 0.72));
  box-shadow:
    -5px 0 12px rgba(0, 0, 0, 0.5),
    5px 0 12px rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.DubTapeSlot-Cx {
  position: relative;
  min-height: calc(var(--dubtape-height) + 2px);
  padding: 1px 3px 2px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 34%, rgba(255, 255, 255, 0.03) 52%, rgba(0, 0, 0, 0.28)),
    rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 5px 7px var(--dubtape-slot-shadow),
    inset 0 -3px 5px rgba(255, 255, 255, 0.04);
  z-index: 1;
}

.DubTapeSlot-Cx.is-empty::after {
  content: "";
  display: block;
  height: var(--dubtape-height);
  border: 1px solid rgba(255, 255, 255, 0.035);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.025) 44%, rgba(0, 0, 0, 0.38)),
    rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.52);
}

.DubTape-Cx {
  --dubtape-bg: #f3f1e6;
  --dubtape-text: #141414;
  --dubtape-accent: var(--dubtape-nv-green);
  --dubtape-edge: #111;
  --dubtape-side: #050505;
  position: relative;
  min-height: var(--dubtape-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 16px;
  border-top: 0;
  border-bottom: 0;
  border-left: 3px solid var(--dubtape-side);
  border-right: 3px solid var(--dubtape-side);
  border-radius: var(--dubtape-radius);
  background: var(--dubtape-bg);
  color: var(--dubtape-text);
  font-family: var(--dubtape-font-label);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 3px 7px var(--dubtape-shadow);
  overflow: hidden;
  transform-origin: 50% 50%;
}

.DubTape-Cx::before,
.DubTape-Cx::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.DubTape-Cx::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.16));
  mix-blend-mode: soft-light;
}

.DubTape-Cx.is-selected {
  transform: translateY(-1px) translateZ(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(0, 0, 0, 0.58);
}

.DubTapeLabel-Dx {
  position: relative;
  z-index: 3;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: var(--dubtape-text-shadow, none);
}

.DubTapeMeta-Dx {
  opacity: 0.66;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.DubTapeNv-Eo {
  position: relative;
  z-index: 4;
  width: calc(var(--dubtape-height) * 0.34);
  height: calc(var(--dubtape-height) * 0.92);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.DubTapeNvImage-Eo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.DubTape-Cx:not(.is-run) .DubTapeNv-Eo {
  display: none;
}

.DubTape-Cx.is-run.template-white {
  --dubtape-bg: #f8f6ee;
  --dubtape-text: #111;
  --dubtape-edge: #1d1d1d;
  --dubtape-side: #060606;
}

.DubTape-Cx.is-run.template-offwhite {
  --dubtape-bg: #ece8d7;
  --dubtape-text: #c0602c;
  --dubtape-edge: #202020;
  --dubtape-side: #10100f;
}

.DubTape-Cx.is-run.template-darkgray {
  --dubtape-bg: #3d3d3b;
  --dubtape-text: #f6f3e6;
  --dubtape-edge: #0d0d0d;
  --dubtape-side: #000000;
  --dubtape-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.62);
}

.DubTape-Cx.is-fail.template-lightred {
  --dubtape-bg: #ff6a6f;
  --dubtape-text: #ffffff;
  --dubtape-edge: #661a1d;
  --dubtape-side: #120606;
  --dubtape-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.DubTape-Cx.is-fail.template-darkred {
  --dubtape-bg: #7c0708;
  --dubtape-text: #ffffff;
  --dubtape-edge: #260000;
  --dubtape-side: #080000;
  --dubtape-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.66);
}

.DubTape-Cx.is-enh.template-lightblue {
  --dubtape-bg: #5298d8;
  --dubtape-text: #ffffff;
  --dubtape-edge: #173b5f;
  --dubtape-side: #06111c;
  --dubtape-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
}

.DubTape-Cx.is-enh.template-darkblue {
  --dubtape-bg: #164f63;
  --dubtape-text: #ffffff;
  --dubtape-edge: #061a23;
  --dubtape-side: #02080b;
  --dubtape-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.68);
}

.DubTape-Cx.is-diag.template-peach {
  --dubtape-bg: #f0a77f;
  --dubtape-text: #ffffff;
  --dubtape-edge: #8a4727;
  --dubtape-side: #170b05;
  --dubtape-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

.DubTape-Cx.is-diag.template-gold {
  --dubtape-bg: #ffc20f;
  --dubtape-text: #ffffff;
  --dubtape-edge: #7e5800;
  --dubtape-side: #181000;
  --dubtape-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.26);
}

.DubTape-Cx.font-clean .DubTapeLabel-Dx {
  font-family: var(--dubtape-font-label);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.DubTape-Cx.font-condensed .DubTapeLabel-Dx {
  font-family: var(--dubtape-font-condensed);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.DubTape-Cx.font-tech .DubTapeLabel-Dx {
  font-family: var(--dubtape-font-tech);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.DubTape-Cx.font-archive .DubTapeLabel-Dx {
  font-family: var(--dubtape-font-archive);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.DubTape-Cx.fade-horizontal::after {
  left: 0;
  right: 0;
  top: 39%;
  height: 9px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 244, 197, 0.20) 12%, rgba(255, 255, 255, 0.62) 38%, rgba(255, 255, 255, 0.78) 52%, rgba(255, 255, 255, 0.28) 74%, transparent 100%);
  opacity: 0.72;
  mix-blend-mode: screen;
  z-index: 2;
}

.DubTape-Cx.fade-center-round::after {
  top: 4px;
  bottom: 4px;
  left: 27%;
  width: 39%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.82), rgba(255, 246, 194, 0.52) 34%, rgba(255, 255, 255, 0.16) 58%, transparent 78%);
  opacity: 0.76;
  mix-blend-mode: screen;
  z-index: 2;
}

.DubTape-Cx.fade-diagonal-edge::after {
  top: -74%;
  right: -3%;
  width: 34%;
  height: 248%;
  transform: rotate(-12deg);
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 250, 218, 0.20) 18%, rgba(255, 255, 255, 0.72) 46%, rgba(255, 255, 255, 0.32) 62%, transparent 100%);
  opacity: 0.72;
  mix-blend-mode: screen;
  z-index: 2;
}

.DubTape-Cx.fade-offcenter-round::after {
  top: 4px;
  bottom: 4px;
  left: 9%;
  width: 33%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.78), rgba(255, 248, 206, 0.46) 38%, rgba(255, 255, 255, 0.14) 62%, transparent 80%);
  opacity: 0.74;
  mix-blend-mode: screen;
  z-index: 2;
}
.DubTapeRack-Ax.skin-cruise {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.46), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.48)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.36)),
    #0a0c0f;
}

.DubTapeRack-Ax.skin-cruise .DubTapeSlot-Cx {
  background:
    linear-gradient(180deg, rgba(44, 10, 16, 0.56), transparent 40%, rgba(255, 235, 235, 0.06) 58%, rgba(18, 4, 8, 0.54)),
    linear-gradient(90deg, rgba(28, 6, 10, 0.92), rgba(62, 16, 24, 0.82) 18%, rgba(82, 22, 34, 0.62) 50%, rgba(58, 14, 22, 0.80) 82%, rgba(22, 5, 9, 0.94)),
    #2a0a10;
  box-shadow:
    inset 0 5px 8px rgba(0, 0, 0, 0.42),
    inset 0 -3px 6px rgba(255, 210, 210, 0.05);
}

.DubTapeRack-Ax.skin-cruise .DubTapeSlot-Cx.is-empty::after {
  background:
    linear-gradient(180deg, rgba(20, 4, 8, 0.48), rgba(108, 34, 48, 0.10) 44%, rgba(18, 4, 8, 0.52)),
    #22070c;
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.46);
}
.DubTapeRack-Ax.skin-studio {
  background:
    linear-gradient(90deg, rgba(96, 55, 26, 0.34), transparent 12%, transparent 88%, rgba(96, 55, 26, 0.38)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(95, 75, 54, 0.28)),
    #b4895d;
  border-color: rgba(255, 238, 210, 0.18);
}

.DubTapeRack-Ax.skin-studio .DubTapeSlot-Cx {
  background:
    linear-gradient(180deg, rgba(72, 37, 15, 0.34), transparent 42%, rgba(255, 245, 220, 0.06) 58%, rgba(72, 37, 15, 0.28)),
    rgba(92, 54, 28, 0.18);
}
