:root {
  --db-bg: #0c0e12;
  --db-surface: #151922;
  --db-muted: #1b2030;
  --db-border: #2a3242;
  --db-text: #f3f4f6;
  --db-secondary: #c6cad3;
  --db-dim: #8a90a0;
  --db-red: #c83a32;
  --db-red-dark: #8f1722;
  --db-orange: #ff8c69;
  --db-green: #2ecc71;
  --db-error: #ff4757;
  --db-font: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  background: var(--db-bg);
}

body.site.itemid-101 {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--db-text);
  background: var(--db-bg);
  font-family: var(--db-font);
}

.db-app,
.db-app * {
  box-sizing: border-box;
}

.db-app button,
.db-app textarea,
.db-app select {
  font: inherit;
}

.db-app button {
  color: inherit;
}

.db-topbar {
  position: relative;
  z-index: 20;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 42px);
  background: linear-gradient(135deg, #181a22, #241117);
  border-bottom: 1px solid rgba(200, 58, 50, .2);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .22);
}

.db-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: var(--db-red) !important;
  text-decoration: none;
}

.db-logo strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.db-logo-bars {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.db-logo-bars i {
  width: 4px;
  display: block;
  border-radius: 8px;
  background: linear-gradient(var(--db-orange), var(--db-red-dark));
  box-shadow: 0 0 12px rgba(200, 58, 50, .2);
}

.db-logo-bars i:nth-child(1) { height: 12px; }
.db-logo-bars i:nth-child(2) { height: 17px; }
.db-logo-bars i:nth-child(3) { height: 22px; }
.db-logo-bars i:nth-child(4) { height: 15px; }

.db-mode-pill {
  min-width: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 20px;
  color: var(--db-orange);
  background: rgba(200, 58, 50, .1);
  border: 1px solid rgba(200, 58, 50, .48);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.db-mode-pill span {
  color: var(--db-red);
}

.db-service-state {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--db-dim);
  font-size: 11px;
  font-weight: 700;
}

.db-service-state i,
.db-status-dot,
.db-footer span i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #f0a020;
  box-shadow: 0 0 0 4px rgba(240, 160, 32, .1);
}

.db-service-state.is-ready i,
.db-status-dot,
.db-footer span i {
  background: var(--db-green);
  box-shadow: 0 0 0 4px rgba(46, 204, 113, .1);
}

.db-service-state.is-error i {
  background: var(--db-error);
  box-shadow: 0 0 0 4px rgba(255, 71, 87, .1);
}

.db-main {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 16px clamp(16px, 2.2vw, 28px) 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #0c0d12, #1a1014 52%, #121824);
}

.db-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(255, 255, 255, .1) .6px, transparent .6px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.db-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.db-orb-top {
  top: -130px;
  right: -80px;
  width: 290px;
  height: 290px;
  background: rgba(209, 75, 62, .15);
}

.db-orb-left {
  bottom: 180px;
  left: -90px;
  width: 230px;
  height: 230px;
  background: rgba(255, 138, 91, .1);
}

.db-orb-right {
  right: -130px;
  bottom: 240px;
  width: 320px;
  height: 320px;
  background: rgba(92, 139, 255, .1);
}

.db-workspace,
.db-player {
  position: relative;
  z-index: 2;
  width: min(100%, 1440px);
  margin: 0 auto;
}

.db-workspace {
  min-height: clamp(510px, calc(100vh - 264px), 720px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
}

.db-card {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(200, 58, 50, .28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
}

.db-editor-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(28, 20, 24, .98), rgba(38, 23, 30, .95));
}

.db-card-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(200, 58, 50, .17);
}

.db-card-title,
.db-controls-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.db-card-title strong,
.db-controls-title strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.db-card-title small,
.db-controls-title small {
  display: block;
  margin-top: 3px;
  color: var(--db-dim);
  font-size: 10px;
  font-weight: 600;
}

.db-icon-box {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--db-red);
  background: rgba(200, 58, 50, .07);
  border: 1px solid rgba(200, 58, 50, .38);
  border-radius: 12px;
}

.db-icon-box svg,
.db-tool-btn svg,
.db-generate svg,
.db-download svg,
.db-round-control svg,
.db-play-control svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.db-generate-icon svg path,
.db-play-control .db-play-svg path {
  fill: currentColor;
  stroke: none;
}

.db-editor-tools,
.db-action-row,
.db-generate-row,
.db-model-info,
.db-player-main,
.db-track-meta,
.db-footer {
  display: flex;
  align-items: center;
}

.db-editor-tools {
  gap: 8px;
}

.db-mini-btn,
.db-tool-btn,
.db-download,
.db-round-control {
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(27, 32, 48, .94), rgba(21, 25, 34, .95));
  border: 1px solid rgba(42, 50, 66, .9);
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

.db-mini-btn:hover,
.db-tool-btn:hover,
.db-download:not(:disabled):hover,
.db-round-control:not(:disabled):hover {
  color: var(--db-orange);
  border-color: rgba(200, 58, 50, .65);
  transform: translateY(-2px);
}

.db-mini-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 18px;
}

.db-counter {
  margin-left: 3px;
  padding: 7px 11px;
  color: var(--db-secondary);
  background: var(--db-surface);
  border: 1px solid var(--db-border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.db-counter b {
  color: var(--db-text);
}

.db-counter i {
  margin: 0 3px;
  color: var(--db-red);
  font-style: normal;
}

.db-editor-body {
  position: relative;
  flex: 1;
}

#db-text {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  resize: none;
  padding: 22px;
  color: var(--db-text);
  caret-color: var(--db-orange);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 16px;
  line-height: 1.75;
}

#db-text::placeholder {
  color: #737988;
}

.db-drop-message {
  position: absolute;
  inset: 12px;
  display: none;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--db-orange);
  background: rgba(20, 16, 19, .92);
  border: 2px dashed rgba(200, 58, 50, .65);
  border-radius: 18px;
  font-size: 13px;
  font-weight: 800;
}

.db-drop-message span {
  font-size: 28px;
}

.db-editor-body.is-dragging .db-drop-message {
  display: grid;
}

.db-card-foot {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(27, 32, 48, .52);
  border-top: 1px solid var(--db-border);
}

.db-limit {
  color: var(--db-dim);
  font-size: 10px;
}

.db-action-row {
  gap: 8px;
}

.db-tool-btn {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 13px;
}

.db-tool-btn svg {
  width: 18px;
}

.db-controls-card {
  align-self: start;
  padding: 18px;
  background: linear-gradient(135deg, rgba(26, 23, 26, .98), rgba(38, 30, 23, .95));
  border-color: rgba(255, 140, 105, .22);
}

.db-controls-title {
  margin-bottom: 24px;
}

.db-icon-soft {
  color: var(--db-orange);
  background: rgba(255, 140, 105, .06);
  border-color: rgba(255, 140, 105, .35);
}

.db-field-label {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--db-secondary);
  font-size: 11px;
  font-weight: 700;
}

.db-select-wrap {
  position: relative;
}

.db-select-wrap select {
  width: 100%;
  height: 54px;
  padding: 0 42px;
  color: var(--db-text);
  appearance: none;
  background: var(--db-muted);
  border: 1px solid rgba(42, 50, 66, .95);
  border-radius: 16px;
  outline: none;
  font-size: 12px;
  font-weight: 700;
}

.db-select-wrap select:focus {
  border-color: var(--db-red);
  box-shadow: 0 0 0 3px rgba(200, 58, 50, .1);
}

.db-select-icon,
.db-chevron {
  position: absolute;
  z-index: 2;
  top: 50%;
  pointer-events: none;
  transform: translateY(-50%);
}

.db-select-icon {
  left: 16px;
  color: var(--db-orange);
}

.db-chevron {
  right: 16px;
  color: var(--db-dim);
  font-size: 18px;
}

.db-model-info {
  justify-content: space-between;
  margin: 11px 2px 21px;
  color: var(--db-dim);
  font-size: 9px;
  font-weight: 700;
}

.db-model-info span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.db-status-dot {
  width: 6px;
  height: 6px;
}

.db-generate-row {
  gap: 11px;
}

.db-generate {
  min-height: 62px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 8px 18px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--db-red), var(--db-red-dark));
  border: 0;
  border-radius: 18px;
  box-shadow: 0 13px 28px rgba(143, 23, 34, .25);
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

.db-generate:not(:disabled):hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.db-generate:disabled,
.db-download:disabled,
.db-round-control:disabled,
.db-play-control:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.db-generate.is-loading .db-generate-icon {
  animation: dbSpin .8s linear infinite;
}

@keyframes dbSpin {
  to { transform: rotate(360deg); }
}

.db-generate-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.db-generate strong,
.db-generate small {
  display: block;
  text-align: left;
}

.db-generate strong {
  font-size: 13px;
}

.db-generate small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .68);
  font-size: 9px;
}

.db-download {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 18px;
}

.db-message {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 13px;
  color: var(--db-dim);
  background: rgba(21, 25, 34, .5);
  border: 1px solid rgba(42, 50, 66, .7);
  border-radius: 13px;
  font-size: 10px;
  font-weight: 600;
}

.db-message.is-error {
  color: #ff8b95;
  background: rgba(255, 71, 87, .06);
  border-color: rgba(255, 71, 87, .3);
}

.db-message.is-success {
  color: #7ce3a8;
  background: rgba(46, 204, 113, .06);
  border-color: rgba(46, 204, 113, .25);
}

.db-player {
  margin-top: 10px;
}

.db-player-main {
  min-height: 96px;
  gap: 12px;
  padding: 11px 14px;
  background: linear-gradient(#1a151a, #231a21);
  border: 1px solid rgba(200, 58, 50, .25);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .22);
}

.db-round-control,
.db-play-control {
  flex: 0 0 auto;
  border-radius: 50%;
}

.db-round-control {
  width: 42px;
  height: 42px;
}

.db-play-control {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--db-red), var(--db-red-dark));
  border: 0;
  box-shadow: 0 8px 22px rgba(143, 23, 34, .32);
}

.db-play-control svg {
  grid-area: 1 / 1;
}

.db-play-control .db-pause-svg {
  display: none;
}

.db-play-control.is-playing .db-play-svg {
  display: none;
}

.db-play-control.is-playing .db-pause-svg {
  display: block;
}

.db-track {
  position: relative;
  min-width: 0;
  flex: 1;
  padding: 0 8px;
}

.db-track-meta {
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 6px;
  font-size: 10px;
}

.db-track-meta strong {
  overflow: hidden;
  color: var(--db-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-track-meta span {
  flex: 0 0 auto;
  color: var(--db-dim);
  font-variant-numeric: tabular-nums;
}

#db-progress {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--db-red) var(--db-progress, 0%), var(--db-border) var(--db-progress, 0%));
  border-radius: 999px;
}

#db-progress::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  appearance: none;
  background: var(--db-orange);
  border: 2px solid #fff;
  border-radius: 50%;
}

.db-wave {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  margin-top: 4px;
  overflow: hidden;
  opacity: .34;
}

.db-wave i {
  width: 3px;
  height: calc(5px + (var(--n) * 1px));
  display: block;
  background: linear-gradient(var(--db-orange), var(--db-red));
  border-radius: 999px;
}

.db-wave i:nth-child(3n+1) { --n: 6; }
.db-wave i:nth-child(3n+2) { --n: 14; }
.db-wave i:nth-child(3n) { --n: 9; }

.db-wave.is-playing {
  opacity: .9;
}

.db-wave.is-playing i {
  animation: dbWave .7s ease-in-out infinite alternate;
}

.db-wave.is-playing i:nth-child(2n) { animation-delay: -.25s; }
.db-wave.is-playing i:nth-child(3n) { animation-delay: -.45s; }

@keyframes dbWave {
  to { transform: scaleY(.35); }
}

.db-speed {
  width: 105px;
  flex: 0 0 auto;
}

.db-speed span {
  display: block;
  margin-bottom: 6px;
  color: var(--db-dim);
  font-size: 9px;
  font-weight: 700;
}

.db-speed select {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  color: var(--db-text);
  background: var(--db-muted);
  border: 1px solid var(--db-border);
  border-radius: 11px;
  outline: none;
  font-size: 11px;
  font-weight: 700;
}

.db-footer {
  min-height: 32px;
  justify-content: flex-start;
  padding: 5px 8px 0;
  color: var(--db-dim);
  font-size: 9px;
  font-weight: 700;
}

.db-footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.db-toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 16px;
  visibility: hidden;
  opacity: 0;
  color: var(--db-text);
  background: var(--db-surface);
  border: 1px solid var(--db-border);
  border-radius: 14px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, .35);
  font-size: 11px;
  font-weight: 700;
  transform: translateY(12px);
  transition: .2s ease;
}

.db-toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .db-workspace {
    grid-template-columns: 1fr;
  }

  .db-controls-card {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .db-topbar {
    height: 64px;
    grid-template-columns: 1fr auto;
  }

  .db-mode-pill {
    min-width: 0;
    padding: 8px 12px;
  }

  .db-service-state {
    display: none;
  }

  .db-logo strong {
    font-size: 17px;
  }

  .db-main {
    min-height: calc(100vh - 64px);
    padding: 10px;
  }

  .db-workspace {
    min-height: auto;
  }

  .db-card {
    border-radius: 20px;
  }

  .db-editor-card {
    min-height: 500px;
  }

  .db-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .db-editor-tools {
    width: 100%;
  }

  .db-counter {
    margin-left: auto;
  }

  #db-text {
    min-height: 330px;
    padding: 17px;
  }

  .db-player-main {
    flex-wrap: wrap;
  }

  .db-track {
    min-width: calc(100% - 125px);
  }

  .db-speed {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-left: 110px;
  }

  .db-speed span {
    margin: 0;
  }

  .db-speed select {
    width: 95px;
  }

  .db-footer {
    gap: 8px;
  }

  .db-footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .db-wave.is-playing i,
  .db-generate.is-loading .db-generate-icon {
    animation: none;
  }
}

/* 2026 responsive interface refresh */
:root {
  --db-bg: #08090d;
  --db-surface: #12141b;
  --db-muted: #191d27;
  --db-border: #292e3c;
  --db-text: #f7f7f8;
  --db-secondary: #c9cbd3;
  --db-dim: #858b9b;
  --db-red: #ee5148;
  --db-red-dark: #a9212c;
  --db-orange: #ff9d7b;
  --db-green: #43d17e;
}

body.site.itemid-101 {
  background:
    radial-gradient(circle at 85% 0%, rgba(238, 81, 72, .12), transparent 30rem),
    radial-gradient(circle at 5% 45%, rgba(83, 99, 255, .08), transparent 32rem),
    var(--db-bg);
}

.db-topbar {
  position: sticky;
  top: 0;
  height: 76px;
  padding-inline: max(24px, calc((100vw - 1500px) / 2));
  background: rgba(10, 11, 16, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(135%);
}

.db-logo {
  gap: 13px;
}

.db-logo strong {
  color: #fff;
  font-size: 21px;
  letter-spacing: -.65px;
}

.db-logo-bars i {
  width: 4px;
  background: linear-gradient(180deg, var(--db-orange), var(--db-red));
  box-shadow: 0 0 18px rgba(238, 81, 72, .32);
}

.db-mode-pill {
  min-width: 178px;
  padding: 10px 20px;
  color: #ffd0c1;
  background: rgba(238, 81, 72, .09);
  border-color: rgba(238, 81, 72, .3);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.db-main {
  min-height: calc(100dvh - 76px);
  padding: clamp(18px, 2.4vw, 34px);
  background: transparent;
}

.db-main::before {
  opacity: .1;
  background-size: 12px 12px;
}

.db-orb {
  filter: blur(42px);
}

.db-orb-top {
  background: rgba(238, 81, 72, .14);
}

.db-orb-left {
  background: rgba(117, 92, 255, .09);
}

.db-orb-right {
  background: rgba(255, 157, 123, .07);
}

.db-workspace,
.db-player {
  width: min(100%, 1500px);
}

.db-workspace {
  min-height: min(690px, calc(100dvh - 250px));
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: clamp(18px, 2vw, 28px);
}

.db-card {
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 24px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .28),
    inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(20px);
}

.db-editor-card {
  min-height: 520px;
  background:
    linear-gradient(145deg, rgba(21, 22, 29, .96), rgba(14, 15, 21, .96));
}

.db-card-head {
  min-height: 78px;
  padding: 16px 20px;
  border-color: rgba(255, 255, 255, .065);
}

.db-card-title strong,
.db-controls-title strong {
  font-size: 15px;
  letter-spacing: -.15px;
}

.db-card-title small,
.db-controls-title small {
  margin-top: 4px;
  font-size: 11px;
}

.db-icon-box {
  width: 42px;
  height: 42px;
  color: var(--db-orange);
  background: linear-gradient(145deg, rgba(238, 81, 72, .13), rgba(238, 81, 72, .045));
  border-color: rgba(238, 81, 72, .28);
  border-radius: 14px;
}

.db-mini-btn,
.db-tool-btn,
.db-download,
.db-round-control {
  background: rgba(25, 29, 39, .78);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.db-counter {
  padding: 8px 12px;
  background: rgba(25, 29, 39, .72);
  border-color: rgba(255, 255, 255, .08);
}

#db-text {
  min-height: 370px;
  padding: clamp(22px, 3vw, 38px);
  font-size: 18px;
  line-height: 1.8;
}

.db-card-foot {
  min-height: 68px;
  padding: 12px 18px;
  background: rgba(10, 11, 16, .42);
  border-color: rgba(255, 255, 255, .065);
}

.db-tool-btn {
  width: 42px;
  height: 42px;
}

.db-controls-card {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
  background:
    linear-gradient(150deg, rgba(24, 22, 25, .97), rgba(15, 16, 22, .97));
  border-color: rgba(255, 157, 123, .15);
}

.db-controls-title {
  margin-bottom: 30px;
}

.db-field-label {
  margin-bottom: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.db-select-wrap select {
  height: 60px;
  padding-inline: 46px;
  background: rgba(26, 30, 41, .9);
  border-color: rgba(255, 255, 255, .09);
  border-radius: 17px;
  font-size: 13px;
}

.db-model-info {
  margin: 13px 3px 26px;
  font-size: 10px;
}

.db-generate {
  min-height: 66px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f05a4f, #b52834);
  box-shadow: 0 16px 34px rgba(169, 33, 44, .26);
}

.db-generate strong {
  font-size: 14px;
}

.db-download {
  width: 66px;
  height: 66px;
}

.db-message {
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 15px;
  background: rgba(10, 11, 16, .42);
  border-color: rgba(255, 255, 255, .065);
  font-size: 11px;
}

.db-player {
  margin-top: 18px;
}

.db-player-main {
  min-height: 108px;
  gap: 16px;
  padding: 15px 18px;
  background: rgba(16, 17, 23, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.db-round-control {
  width: 44px;
  height: 44px;
}

.db-play-control {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f05a4f, #a9212c);
  box-shadow: 0 12px 30px rgba(169, 33, 44, .32);
}

.db-track {
  padding-inline: 4px;
}

.db-track-meta {
  margin-bottom: 9px;
  font-size: 11px;
}

.db-wave {
  height: 28px;
  gap: clamp(2px, .32vw, 5px);
}

.db-speed {
  width: 118px;
}

.db-speed select {
  height: 42px;
  background: rgba(25, 29, 39, .86);
  border-color: rgba(255, 255, 255, .08);
  border-radius: 12px;
}

.db-footer {
  min-height: 38px;
  padding: 8px 8px 0;
}

@media (max-width: 1100px) {
  .db-workspace {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .db-controls-card {
    padding: 20px;
  }
}

@media (max-width: 980px) {
  .db-topbar {
    padding-inline: 20px;
  }

  .db-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 24px;
  }

  .db-editor-card {
    grid-row: 2;
  }

  .db-controls-card {
    position: static;
    grid-row: 1;
    overflow: hidden;
  }

  .db-editor-card {
    min-height: 470px;
  }

  #db-text {
    min-height: 310px;
  }
}

@media (max-width: 600px) {
  .db-topbar {
    height: 62px;
    grid-template-columns: 1fr auto;
    padding-inline: 14px;
  }

  .db-logo {
    gap: 9px;
  }

  .db-logo strong {
    font-size: 18px;
  }

  .db-logo-bars {
    transform: scale(.88);
    transform-origin: left center;
  }

  .db-mode-pill {
    min-width: 0;
    padding: 8px 11px;
    font-size: 10px;
  }

  .db-mode-pill span {
    display: none;
  }

  .db-service-state {
    display: none;
  }

  .db-main {
    min-height: calc(100dvh - 62px);
    padding: 12px;
    overflow: clip;
  }

  .db-orb {
    opacity: .6;
  }

  .db-workspace {
    row-gap: 18px;
  }

  .db-card {
    border-radius: 19px;
  }

  .db-editor-card {
    min-height: 390px;
  }

  .db-card-head {
    min-height: 68px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 12px;
  }

  .db-card-title {
    min-width: 0;
    gap: 9px;
  }

  .db-card-title small {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .db-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .db-editor-tools {
    width: auto;
    margin-left: auto;
    gap: 5px;
  }

  .db-mini-btn {
    width: 30px;
    height: 30px;
  }

  .db-counter {
    margin: 0;
    padding: 6px 9px;
    background: rgba(15, 17, 24, .86);
    font-size: 9px;
    backdrop-filter: blur(10px);
  }

  #db-text {
    min-height: 245px;
    padding: 22px 16px 16px;
    font-size: 16px;
    line-height: 1.7;
  }

  .db-card-foot {
    min-height: 58px;
    padding: 9px 11px;
  }

  .db-limit {
    font-size: 9px;
  }

  .db-tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .db-controls-card {
    padding: 17px;
  }

  .db-controls-title {
    margin-bottom: 20px;
  }

  .db-select-wrap select {
    height: 56px;
    font-size: 12px;
  }

  .db-model-info {
    margin-bottom: 18px;
  }

  .db-generate-row {
    gap: 9px;
  }

  .db-generate {
    min-height: 58px;
    padding-inline: 12px;
    border-radius: 16px;
  }

  .db-generate-icon {
    width: 31px;
    height: 31px;
  }

  .db-generate strong {
    font-size: 12px;
  }

  .db-download {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .db-message {
    min-height: 44px;
    margin-top: 12px;
  }

  .db-player {
    margin-top: 12px;
  }

  .db-player-main {
    display: grid;
    grid-template-columns: 44px 54px minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
    border-radius: 19px;
  }

  .db-round-control {
    width: 42px;
    height: 42px;
    align-self: center;
  }

  .db-play-control {
    width: 54px;
    height: 54px;
    align-self: center;
  }

  .db-track {
    min-width: 0;
    padding: 0;
  }

  .db-track-meta {
    gap: 8px;
    font-size: 9px;
  }

  .db-wave {
    height: 22px;
    gap: 2px;
  }

  .db-wave i:nth-child(n+17) {
    display: none;
  }

  .db-speed {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .065);
  }

  .db-speed span {
    margin: 0;
    font-size: 10px;
  }

  .db-speed select {
    width: 105px;
  }

  .db-footer {
    min-height: 34px;
    justify-content: flex-start;
    padding-top: 7px;
  }

  .db-footer > span {
    display: inline-flex;
  }

  .db-toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 380px) {
  .db-mode-pill {
    padding-inline: 9px;
  }

  .db-card-title small,
  .db-generate small {
    display: none;
  }

  .db-counter {
    display: none;
  }

  .db-player-main {
    grid-template-columns: 40px 50px minmax(0, 1fr);
    padding: 10px;
  }

  .db-round-control {
    width: 38px;
    height: 38px;
  }

  .db-play-control {
    width: 50px;
    height: 50px;
  }
}

/* Premium visual layer */
:root {
  --db-bg: #07080c;
  --db-surface: #11131a;
  --db-muted: #191c25;
  --db-border: #2b2f3b;
  --db-red: #ff554b;
  --db-red-dark: #a51828;
  --db-orange: #ffad83;
  --db-glow: rgba(255, 85, 75, .24);
}

.db-app {
  isolation: isolate;
}

.db-topbar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(36vw, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 85, 75, .8), transparent);
  transform: translateX(-50%);
}

.db-logo-bars {
  width: 32px;
  justify-content: center;
  padding: 4px 5px;
  background: linear-gradient(145deg, rgba(255, 85, 75, .18), rgba(255, 85, 75, .03));
  border: 1px solid rgba(255, 85, 75, .18);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(255, 85, 75, .13);
}

.db-logo-bars i {
  width: 3px;
}

.db-logo strong {
  background: linear-gradient(100deg, #fff 15%, #ffc0a8 60%, #ff665a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 23px;
  font-weight: 850;
}

.db-mode-pill {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 85, 75, .16), rgba(255, 85, 75, .035));
  border-color: rgba(255, 117, 99, .3);
  box-shadow:
    0 10px 35px rgba(0, 0, 0, .18),
    inset 0 1px rgba(255, 255, 255, .07);
}

.db-mode-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .08), transparent 70%);
  transform: translateX(-120%);
  animation: dbShine 5s ease-in-out infinite;
}

@keyframes dbShine {
  45%, 100% { transform: translateX(130%); }
}

.db-service-state {
  padding: 8px 12px;
  background: rgba(17, 19, 26, .62);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 999px;
}

.db-main {
  background:
    radial-gradient(circle at 50% -15%, rgba(255, 85, 75, .11), transparent 35rem),
    linear-gradient(180deg, rgba(11, 12, 18, .2), rgba(7, 8, 12, .72));
}

.db-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center top, #000, transparent 76%);
}

.db-card {
  position: relative;
}

.db-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .17), transparent);
}

.db-editor-card {
  background:
    radial-gradient(circle at 0 0, rgba(255, 85, 75, .07), transparent 20rem),
    linear-gradient(145deg, rgba(20, 22, 29, .98), rgba(10, 11, 16, .98));
  border-color: rgba(255, 255, 255, .1);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, .38),
    0 0 0 1px rgba(255, 85, 75, .025),
    inset 0 1px rgba(255, 255, 255, .04);
}

.db-controls-card {
  overflow: visible;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 159, 116, .1), transparent 20rem),
    linear-gradient(155deg, rgba(24, 23, 28, .98), rgba(11, 12, 17, .98));
  border-color: rgba(255, 146, 111, .18);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, .38),
    0 0 50px rgba(255, 85, 75, .035),
    inset 0 1px rgba(255, 255, 255, .045);
}

.db-card-head {
  background: linear-gradient(90deg, rgba(255, 255, 255, .015), transparent);
}

.db-icon-box {
  box-shadow:
    0 10px 25px rgba(255, 85, 75, .08),
    inset 0 1px rgba(255, 255, 255, .05);
}

.db-card-title strong,
.db-controls-title strong {
  color: #fff;
  font-weight: 800;
}

.db-mini-btn,
.db-tool-btn,
.db-download,
.db-round-control {
  backdrop-filter: blur(12px);
}

.db-mini-btn:hover,
.db-tool-btn:hover,
.db-download:not(:disabled):hover,
.db-round-control:not(:disabled):hover {
  color: #fff;
  background: rgba(255, 85, 75, .13);
  border-color: rgba(255, 85, 75, .4);
  box-shadow: 0 10px 25px rgba(255, 85, 75, .1);
}

.db-counter {
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

#db-text {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .008), transparent 30%);
  letter-spacing: .01em;
}

#db-text:focus {
  background:
    radial-gradient(circle at 10% 0, rgba(255, 85, 75, .035), transparent 25rem);
}

.db-card-foot {
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
}

.db-controls-title {
  position: relative;
  padding-bottom: 20px;
}

.db-controls-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 85, 75, .28), rgba(255, 255, 255, .04), transparent);
}

.db-select-wrap select {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .045),
    0 12px 30px rgba(0, 0, 0, .16);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.db-select-wrap select:hover {
  border-color: rgba(255, 157, 123, .3);
}

.db-select-wrap select:focus {
  border-color: rgba(255, 85, 75, .65);
  box-shadow:
    0 0 0 4px rgba(255, 85, 75, .1),
    0 16px 38px rgba(0, 0, 0, .2);
}

.db-model-info {
  padding: 0 2px;
}

.db-generate {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, #ff6256, #d6343e 48%, #9d1928);
  box-shadow:
    0 18px 40px rgba(165, 24, 40, .32),
    inset 0 1px rgba(255, 255, 255, .22);
}

.db-generate::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60%;
  background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, .13), transparent 35%);
  animation: dbButtonGlow 7s linear infinite;
}

@keyframes dbButtonGlow {
  to { transform: rotate(360deg); }
}

.db-generate:not(:disabled):hover {
  filter: brightness(1.08) saturate(1.08);
  box-shadow:
    0 22px 48px rgba(165, 24, 40, .4),
    inset 0 1px rgba(255, 255, 255, .25);
}

.db-generate-icon {
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px rgba(255, 255, 255, .15);
}

.db-message {
  position: relative;
  padding-left: 38px;
}

.db-message::before {
  content: "";
  position: absolute;
  left: 16px;
  width: 8px;
  height: 8px;
  background: #72798a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(114, 121, 138, .08);
}

.db-message.is-success::before {
  background: var(--db-green);
  box-shadow: 0 0 0 5px rgba(67, 209, 126, .1);
}

.db-message.is-error::before {
  background: #ff6471;
  box-shadow: 0 0 0 5px rgba(255, 100, 113, .1);
}

.db-player-main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 100%, rgba(255, 85, 75, .08), transparent 18rem),
    linear-gradient(145deg, rgba(20, 21, 28, .97), rgba(10, 11, 16, .97));
}

.db-player-main::before {
  content: "";
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 85, 75, .32), transparent);
}

.db-play-control {
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.db-play-control:not(:disabled):hover {
  transform: scale(1.06);
  filter: brightness(1.08);
  box-shadow: 0 15px 38px rgba(165, 24, 40, .42);
}

#db-progress {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .025);
}

.db-wave {
  opacity: .22;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.db-wave i {
  background: linear-gradient(180deg, #ffb28c, #ff554b 65%, #8c1725);
  box-shadow: 0 0 10px rgba(255, 85, 75, .12);
}

.db-footer img {
  padding: 3px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
}

@media (max-width: 980px) {
  .db-controls-card {
    background:
      radial-gradient(circle at 100% 0, rgba(255, 159, 116, .11), transparent 22rem),
      linear-gradient(145deg, rgba(23, 22, 27, .98), rgba(11, 12, 17, .98));
  }
}

@media (max-width: 600px) {
  .db-topbar::before {
    width: 70vw;
  }

  .db-logo-bars {
    width: 29px;
    border-radius: 9px;
  }

  .db-logo strong {
    font-size: 19px;
  }

  .db-main {
    background:
      radial-gradient(circle at 90% 0, rgba(255, 85, 75, .09), transparent 20rem),
      linear-gradient(180deg, rgba(11, 12, 18, .15), rgba(7, 8, 12, .78));
  }

  .db-card::before {
    left: 18px;
    right: 18px;
  }

  .db-controls-card {
    border-color: rgba(255, 146, 111, .18);
    box-shadow:
      0 22px 55px rgba(0, 0, 0, .3),
      inset 0 1px rgba(255, 255, 255, .04);
  }

  .db-controls-title {
    padding-bottom: 15px;
  }

  .db-editor-card {
    box-shadow:
      0 22px 55px rgba(0, 0, 0, .3),
      inset 0 1px rgba(255, 255, 255, .04);
  }

  .db-generate {
    box-shadow:
      0 14px 32px rgba(165, 24, 40, .3),
      inset 0 1px rgba(255, 255, 255, .2);
  }

  .db-message {
    padding-left: 36px;
  }

  .db-player-main {
    box-shadow:
      0 22px 55px rgba(0, 0, 0, .3),
      inset 0 1px rgba(255, 255, 255, .03);
  }
}

@media (max-width: 980px) {
  .db-workspace > .db-controls-card {
    position: static;
    top: auto;
    align-self: stretch;
    overflow: hidden;
  }
}
