.stream-url-panel {
  position: relative;
}

.stream-url-panel .url-input-shell {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 64px !important;
  padding: 7px 8px 7px 17px !important;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, .25) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(17, 28, 52, .94), rgba(7, 12, 25, .92)) !important;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .065) !important;
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease !important;
}

.stream-url-panel .url-input-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(147, 197, 253, .08) 48%, transparent 72%);
  transform: translateX(-80%);
}

.stream-url-panel .url-input-shell:focus-within {
  border-color: rgba(96, 165, 250, .72) !important;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, .38),
    0 0 0 4px rgba(59, 130, 246, .12),
    0 0 32px rgba(59, 130, 246, .11),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  transform: translateY(-1px);
}

.stream-url-panel .url-input-shell.is-pasted::before {
  opacity: 1;
  animation: urlFieldSweep .65s ease both;
}

.stream-url-panel .url-leading-icon {
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  color: #60a5fa;
  opacity: .72 !important;
  stroke: currentColor !important;
  transition: opacity .2s ease, filter .2s ease;
}

.stream-url-panel .url-input-shell:focus-within .url-leading-icon {
  opacity: 1 !important;
  filter: drop-shadow(0 0 7px rgba(96, 165, 250, .62));
}

.url-input-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.url-input-label {
  color: #7890b2;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.url-input-shell:focus-within .url-input-label,
.url-input-shell.has-value .url-input-label {
  color: #93c5fd;
}

.stream-url-panel #url {
  width: 100%;
  height: 26px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #eff6ff !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 26px;
  text-overflow: ellipsis;
}

.stream-url-panel #url::placeholder {
  color: #53647d;
  font-weight: 500;
}

.url-clear-button,
.url-action-button {
  appearance: none;
  border: 0;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
}

.url-clear-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  color: #71839d;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: scale(.85);
  transition: color .18s ease, background .18s ease, opacity .18s ease, transform .18s ease;
}

.url-input-shell.has-value .url-clear-button {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.url-clear-button:hover {
  color: #dbeafe;
  background: rgba(148, 163, 184, .1);
}

.url-action-button {
  position: relative;
  min-width: 118px;
  height: 46px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, .4);
  border-radius: 13px;
  color: #f8fbff;
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
  box-shadow: 0 9px 22px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255,255,255,.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .025em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.url-action-button::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #dbeafe;
  box-shadow: 0 0 9px rgba(219, 234, 254, .9);
  vertical-align: 1px;
}

.url-input-shell.has-value .url-action-button::before {
  width: 0;
  height: 0;
  margin-right: 8px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
  border-radius: 1px;
  background: transparent;
  box-shadow: none;
  vertical-align: -1px;
}

.url-action-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .4), inset 0 1px 0 rgba(255,255,255,.24);
}

.url-action-button:active {
  transform: translateY(0) scale(.98);
}

.url-action-button:focus-visible,
.url-clear-button:focus-visible {
  outline: 2px solid #bfdbfe;
  outline-offset: 2px;
}

.url-field-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 4px 0;
  color: #5e708a;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
}

.url-field-helper kbd {
  padding: 2px 6px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-bottom-color: rgba(148, 163, 184, .32);
  border-radius: 5px;
  color: #8192aa;
  background: rgba(15, 23, 42, .55);
  font: 700 9px/1.4 "Manrope", sans-serif;
}

@keyframes urlFieldSweep {
  from { transform: translateX(-80%); }
  to { transform: translateX(80%); }
}

@media (max-width: 600px) {
  .stream-url-panel .url-input-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 58px !important;
    padding: 6px 6px 6px 13px !important;
  }

  .url-clear-button {
    position: absolute;
    right: 88px;
  }

  .url-action-button {
    min-width: 78px;
    height: 44px;
    padding: 0 12px;
  }

  .url-input-shell.has-value .url-input-field {
    padding-right: 28px;
  }

  .url-field-helper {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .url-input-shell,
  .url-input-shell::before,
  .url-clear-button,
  .url-action-button {
    animation: none !important;
    transition: none !important;
  }
}
